-
Notifications
You must be signed in to change notification settings - Fork 891
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Threefold repetition checking #144
Comments
Hi @Imilo. Thanks for the report. I think you're correct. Using FIDE rule 9.2 as a reference:
So maybe we should change the code so |
@jhlywa , if that question was for me, that's a tricky question... For example, if I make a position that has appeared 3+ times ->
|
@Imilo you make a good point. I think we should change @Imilo I like your suggestion that Javascript can remember that you can claim for a draw until your next move. That's not the FIDE rule, but you can make it that way for your own chess site even if chess.js is strictly following the FIDE rules. You could do it like this:
|
This bug propagates to This should be labeled as a bug in my opinion. |
in_threefold_repetition() returns true when the same position has repeated 3+ times, but if after that I make absolutely another moves, the opponent too, in_threefold_repetition() still returns true.
I'm not sure that this behavior is by the chess rules. I think the result should be false when the position has changed
The text was updated successfully, but these errors were encountered: