A Python chess game with an inbuilt AI that uses the Minimax algorithm with Alpha-Beta pruning and a heuristic evaluation. The game features different levels of AI difficulty, and allows for both single player and two player.
- Python: A popular programming language known for its simplicity, readability, and versatility. It is widely used for various applications, including game development.
- Pygame: A set of Python modules designed for writing video games. It provides functionality for drawing graphics, handling user input, and managing game logic, making it a popular choice for creating 2D games.
- Play chess against the computer with an inbuilt AI.
- AI uses the Minimax algorithm with Alpha-Beta pruning for optimal move selection.
- Heuristic evaluation to improve AI's decision-making.
- GUI interface using Pygame for a user-friendly chess playing experience.
- Support for standard chess rules, including castling, en passant, pawn promotion, etc.
-
Clone the repository to your local machine:
git clone https://github.com/RaghavVerma24/ChessAI
-
Install dependecies:
pip install
-
Run the game:
cd src python main.py
If you would like to contribute to the project, feel free to submit a pull request. Please ensure that your changes are in line with the project's coding standards and practices.
This project is open-source and available under the MIT License.