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.
- 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
-
Clone the repository
git clone https://github.com/yourusername/chess-engine.git cd chess-engine
-
Install dependencies Ensure you have Python and Pygame installed. You can install Pygame using pip:
pip install pygame
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.
- 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.
- 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!