This is a simple chess game implemented in Python using the Pygame library. It allows players to play chess against each other on the same device.
- Start the Game: Run the
main.py
file to start the game. - Game Interface: The game window will display the chessboard and pieces.
- Game Controls:
- Click on a piece to select it.
- Click on a highlighted square to move the selected piece to that square.
- Press
T
to change themes. - Press
R
to restart the game.
- Drag-and-Drop: Players can move pieces by dragging and dropping them to the desired square.
- Legal Move Highlighting: Legal moves for selected pieces are highlighted on the board.
- Sound Effects: Sound effects are played for piece movements and captures.
- Theme Change: Players can change the theme of the game board.
- Once you're inside the
src
directory, run the Python scriptmain.py
using the following command:
python main.py
- Python 3.x
- Pygame library
- Clone the repository to your local machine.
- Install the required dependencies using
pip install -r requirements.txt
. - Run the game using
python main.py
.
This project was created by Sahil Wankhade. It is based on the Pygame library and follows the rules of traditional chess.