You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To run this on your PC, install pygame using the following command
pip install pygame
And now run ChessGame.py
Player Settings
1. To play against another person, at line 43 and 44 in file ChessMain.py, make playerOne and playerTwo both to be True
2. To play against AI, while playing as white yourself, at line 43 in file ChessMain.py, make playerOne to be True and playerTwo at line 44 in same file to be False
3. To just watch AI struggle against itself, at line 43 and 44 in file ChessMain.py, make playerOne and playerTwo both to be False
Difficulty Settings
To change the difficulty of AI players, change the variable MAX_DEPTH at line6 in file SmartMoveFinder.py file to 1 for least difficulty(greedy algorithm) upto whatever your PC can handle in a reasonable amount of time. Mac M1 with 8 gigs of RAM can usually run upto 3 - 4 move depth in around a minute per move