Chess2 is a chess game developed using pygame-ce
, a fork of pygame
. This project is licensed under the MIT license.
- Python 3.9 or higher (3.10+ recommended)
pygame-ce
library version 2.1.3 or higher- Stockfish binaries (need to be downloaded manually for AI functionality)
stockfish
library version 3 or higherchess
library version 1.9 or higher
Follow these steps to install pygame-ce and run the Chess2 project:
-
Uninstall
pygame
(if already installed):pip uninstall pygame
-
Install requirements:
pip install pygame-ce, chess, stockfish
-
Clone this repository:
git clone https://github.com/mmdmoa/Chess2.git
-
Navigate to the project directory:
cd Chess2
-
Download the Stockfish binaries from the official website (https://stockfishchess.org/). Make sure to choose the appropriate version for your operating system.
-
Change the StockfishPath variable:
- Open the assets.py file located in the core directory of the Chess2 project.
- Locate the StockfishPath variable and replace it with the path to the downloaded Stockfish binaries on your system.
- Save the file.
-
Run the Chess2 game:
python main.py
Please note that the AI functionality requires the Stockfish binaries to
be manually downloaded and the StockfishPath
variable in assets.py
to be updated with the correct path.
Even without the AI, the game will still run perfectly, providing a complete chess game experience.
An Android version of this project is planned for the future. Buildozer will be used to develop the Android version.
Contributions to this project are welcome. Feel free to open issues and pull requests on the GitHub repository.
This project is licensed under the terms of the MIT license. Please see the LICENSE file for more information.
I outsmarted Stockfish 15.1 in just 20 seconds!
5.mp4
pygame-ce (https://github.com/pygame-community/pygame-ce) for providing the framework used in this project Stockfish (https://stockfishchess.org/) for providing the chess engine used in this project (manual download required for AI functionality