This is a project to build a chess AI using a neural network and the Minimax algorithm. The neural network is trained on a dataset of historical chess games and then used as the evaluation function for the Minimax algorithm.
- Clone this repository:
git clone https://github.com/yourusername/chess-ai.git
- Navigate to the project directory:
cd chess-ai
- Install the requirements:
pip install -r requirements.txt
-
Train the neural network:
python train.py
This will train the network and save the trained model to a file named 'chess_net.pth'.
-
Run the chess AI:
python chess_ai.py
This will start a game of chess against the AI.
Please feel free to fork this repository and submit pull requests. You can also open an issue if you find any bugs or have any suggestions for improvements.