Skip to content

aaahza/Chess-Engine

Repository files navigation

Chess Engine in Python

Overview

This project is a chess game implemented in Python using Pygame. It currently allows players to play chess with all standard functionalities, including piece movements, capturing, and turn-based gameplay. Future updates will include a chess engine to provide AI opponents.

Features

  • Standard chess gameplay
  • Graphical user interface using Pygame
  • Drag-and-drop functionality for moving pieces
  • Highlights for possible moves and last move
  • Sound effects for piece movement and captures
  • Themed board customization
  • Game reset functionality

Installation

  1. Clone the repository

    git clone https://github.com/yourusername/chess-engine.git
    cd chess-engine
  2. Install dependencies Ensure you have Python and Pygame installed. You can install Pygame using pip:

    pip install pygame

Usage

Run the game by executing the main file:

python main.py

After running the game, the chess board will appear in a new window. You can play by dragging and dropping pieces using your mouse. The game enforces standard chess rules, and you can switch themes or reset the game using keyboard shortcuts.

Controls

  • Mouse Click and Drag: Move pieces by clicking and dragging them to the desired square.
  • T Key: Change the board theme.
  • R Key: Reset the game to the initial state.
  • Esc Key: Exit the game.

Acknowledgements

  • Pygame - The library used for creating the game's graphical interface.

Feel free to reach out if you have any questions or feedback. Enjoy playing chess!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published