PraxTube / chess-ai

A chess AI that uses alpha-beta to find the best move
MIT License
0 stars 1 forks source link

Fix evaluation function and add better unit tests #51

Closed PraxTube closed 1 year ago

PraxTube commented 1 year ago

The tables for black and white were not equal, the starting position didn't give an evaluation of 0. Apart from fixing that, this commit also added checks for checkmate and stalemate and sets the evaluation value accordingly.

Also added better unit tests for the evaluation function.

Closes #42.