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.pyfile 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
Tto change themes. - Press
Rto 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
srcdirectory, run the Python scriptmain.pyusing 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.