This project implements a simple chess AI using the Min-Max algorithm with evaluation functions. The game can be played in different modes, including human vs bot and bot vs bot.
Make sure you have Python installed on your system. Additionally, you'll need to install the following Python packages:
Install Python:
Download and install Python from the official website: Python Downloads
Install pygame:
pip install pygame
Install Python-Chess:
pip install python-chess
Install StockFish:
https://stockfishchess.org/download/
# we use windows OS and have installed the installed windows version of stockfish to use in Stockfish_FilePath.py
Human vs bot:
python HumanVSbot.py
Stockfish vs bot:
python StockfishVSbot.py
## Limitations of RL making chess bot
<b>Alphago Zero:</b>
Q learning with reward based on final game result and a random opponent:
Q learning with reward function, and a specific opponent:
Stockfish vs Bot game:
So as we see after certain point of the game we see a huge spike in
difference of score between players showing a bad move made by Min max bot.
max number of moves = 81
minimum number of moves = 21
Average number of moves over 50 games = 38.92