likeawizard / chess-go

Chess engine with lichess.org bot-play integration. Discontinued. Further development migrated to https://github.com/likeawizard/tofiks
2 stars 0 forks source link

Three fold repetition detection #81

Closed likeawizard closed 2 years ago

likeawizard commented 2 years ago

Implement 2-fold repetition detection. 2-fold repetition should be enough to internally decide the position is a draw because if we played logical moves and arrived back at the same position there is no mechanism that the same logic should not apply again before actually reaching the three-fold repetition.