For chess newbies, Chess-tutor can assist you to play chess. Learning by playing the game!
Chessgame against AI. It uses python chess and pygame library.
On the right side of screen, it displays win rate of current board ang gives you a feedback about your move.
You can get optimal move by AI by pressing Space bar. If you played wrong, you can undo/redo move.
There are levels of AI difficulty from 0 to 25. If it is too hard or easy, adjust Ai difficulty.
You have to install python chess and pygame, komodo engine (chess engine) (you can use other engines but, you have to change some codes)
- Library
pip install chess
pip install pygame-
Download komodo engine
go to this site https://komodochess.com/ and download komodo 14
unzip it and put it in CHESS-TUTOR FILE
(If you are not using windows or having problem with it, go
chess_engine.pyand change path)
If you don't know the basic rule of chess Click Here
Run main.py to play
Click your piece and click the other place to move your piece
Q : Quit the game
R : Reset the game
Space bar : Display optimal move
Left Key : Undo move
Right Key : Redo move
Up key : Increase AI difficulty
Down key : Decrease AI difficulty
On the top and bottom of the board, it shows pieces captured pieces.
It shows AI Difficulty, Win rate on current board, Feedback and cute kitty chess master.
The kitty master analyses your move and gives you feedback about the move.
Even if the win rate is increased, the feedback could be bad. Because your opponent can make mistake.
If there's the way you or your opponent can make forced checkmate, It tells you the number of moves to checkmate.
If your pawn reaches at the end, you can promte your pawn to rock, knight, bishop or queen. Click one you want.
- Github python-chess
- ChatGPT 4.0
Chess-Tutor is licensed under the GPL 3 - see the LICENSE.md file for details.









