bsamseth / Goldfish

Goldfish - Stockfish's very distant and not so bright cousin - a UCI chess engine
MIT License
7 stars 2 forks source link

Bugfix: Draw by repetition again #49

Closed bsamseth closed 2 months ago

bsamseth commented 2 months ago

The previous fix for repetition checks included a bug once the ply count exceeded 128, where the code would lose track of where in the stack states it was supposed to look. The fix ensures the stack states are as expected. The repetition check then works as intended. Included is a new test case with one of the regression that was observed from live games.

This should close #46, and maybe also #48.