This is a chess game with AI and multiplayer options. It is built using Python and the Pygame library. The game supports both single-player mode against an AI opponent and multiplayer mode for two human players. The AI opponent uses the minimax algorithm to determine the best move
To run the game, you'll need to have Python 3 and Pygame installed. If you don't have Pygame, you can install it using pip:
pip install pygame
Once you have Python and Pygame installed, clone this repository and navigate to the directory:
git clone https://github.com/JairoJosy/Chess---AI.git
cd Chess---AI
To start the game, run the app.py file:
python app.py
You will see a menu with two options: "Single Player" and "Multiplayer". Choose the mode you want to play.
If you choose "Single Player" mode, you will play against an AI opponent. The AI uses the minimax algorithm to determine the best move.
If you choose "Multiplayer" mode, you will play against another human player. The game supports two-player mode on a single computer. Players take turns moving pieces by clicking on them and then clicking on the square they want to move to.
This game was created by Jairo Josy. The minimax algorithm was implemented with the help of this tutorial by Sebastian Lague.
Contributions are welcome ! If you find a bug or would like to add a new feature, please submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.