notnil / chess

chess package for go
MIT License
508 stars 126 forks source link

Remove castling rights change check for half move increment #104

Closed farouk-chessly closed 2 years ago

farouk-chessly commented 2 years ago

Current behaviour When checking if the half move clock should be incremented: If there is a change in castling rights then the half move clock is set back to 0.

Expected behaviour According to several sources, half move clock should not be set to 0 when castling rights change but incremented.

Thanks for the awesome library!

notnil commented 2 years ago

Good catch. I agree with your interpretation. @farouk-chessly would you be willing to add a test specifically for this phenomenon? I will also have to double check repeatability with this issue in mind.

notnil commented 2 years ago

To edit the PR, it created a new one: #110

Thanks @farouk-chessly