This is a simple Chess Game implemented using Python and the Pygame library. It allows two players to play a game of chess on a graphical user interface.
- Classic two-player chess game.
- User-friendly graphical interface built with Pygame.
- Highlights possible moves when a piece is selected.
- Displays current player's turn.
- Pawn promotion.
- Castling and en passant moves are supported.
- Make sure you have Python 3.x installed on your system.
- Clone this repository or download the ZIP file and extract it.
git clone https://github.com/your-username/chess-game-python.git
- Navigate to the project directory.
cd python-chess
- Install the required dependencies. You can use
pip
to install Pygame.
pip install pygame
- Run the game script.
python main.py
- The chess game window will appear. You can now start playing.
- Click on a piece to select it.
- Click on a highlighted square to move the selected piece there.
- Press
ESC
to exit the game at any time.
This game follows the standard rules of chess. If you are unfamiliar with the rules, you can find them here.
Contributions are welcome! If you find any issues or want to enhance the game, feel free to submit a pull request. Make sure to follow the existing code style and guidelines.
- Fork the repository.
- Create a new branch:
git checkout -b feature-new-feature
. - Make your changes and commit them:
git commit -m "Add new feature"
. - Push to the branch:
git push origin feature-new-feature
. - Open a pull request explaining your changes.
This project is done as the final project of CS50.
Enjoy the game of chess with your friends and improve your strategic thinking! If you have any questions or suggestions, feel free to contact us at mjgandhi2305@gmail.com.