The hacky-est chess engine you will ever see, made for an ai class
Well, like any other chess
Options & debug options
q: undo the last two moves
w: dumps the chessboard into the terminal (will break if unicode characters aren't supported)
r: turn the a.i off
d: change the turn
esc: open the main window (the game will be paused). Good if you want to change the difficulty
This engine uses a poor man's version from the minimax with alpha-delta pruning, therefore greater the difficulty, the longer you will have to wait until the movement is made.
The implementation is based on Brandon Yanofsky's chess a.i and uses Larry Kaufman’s suggested values to evaluete the pieces.
The difficulties
depth set to 2: Too Young to Lose
depth set to 3: Checkmate Me Plenty
depth set to 4: Ultra Inteligence
depth set to 5: Chessmaster Incarnate
When the game ends you can save de match to be watched later.
The source comes with the foolsmate.chessia file, which shows a fool's mate.
See LICENSE file