Skip to content

HermesPasser/chessia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChessIA

The hacky-est chess engine you will ever see, made for an ai class

How to play

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

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

Replay

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.

License

See LICENSE file