This Chess AI was built using the Alpha-Beta Pruning algorithm to optimize the Minimax decision-making process. The AI evaluates board positions and makes efficient moves by pruning unnecessary branches in the search tree, improving performance.
- Implements Alpha-Beta Pruning to enhance Minimax efficiency.
- Supports basic chess rules and move generation.
- Written in Python for ease of use and modification.
- Can play against a human player or another AI instance.
Ensure you have Python installed, then clone the repository:
git clone https://github.com/nathanaelmbale/Chess-Ai.git
cd Chess-AiInstall dependencies :
pip install -r requirements.txtRun the script to start the AI:
python ChessMain.pyModify depth in the code to adjust the AI’s difficulty level.
The AI uses:
- Minimax Algorithm – To determine the best possible move by evaluating future positions.
- Alpha-Beta Pruning – To eliminate unnecessary calculations and speed up decision-making.
- Evaluation Function – To assess board states based on material, position, and other heuristics.
- Implement a GUI using Pygame or Tkinter.
- Improve the evaluation function for better strategic play.
- Add support for opening books and endgame databases.
- Using a library like Tensorflow to train the Ai
Feel free to fork the repository and submit pull requests for improvements!
This project is licensed under the MIT License.
Made with ❤️ by Nathanael Mbale.