This project implements a chess AI that can play against a human player or another AI. The AI uses the minimax
and negamax
algorithm with alpha-beta pruning
to search for the best move.
main.py
- The main driver file that handles user input, graphics, and game logic.Mechanics.py
- Contains the GameState class that tracks the current state of the chess game.AI_Engine.py
- Contains the minimax alpha-beta search algorithm and board evaluation function.
- Python 3.9.13
- pygame 2.3.0
- Install Python 3.9.13 and Pygame 2.3.1
- Clone this repository
- Run python main.py
- Select to play against the AI, watch the AI vs AI, or play local multiplayer
- Have fun!
- Click to select a piece and see possible moves
- Click again to make a move
a
to undo a moves
to reset the gamed
to toggle background music