-
Notifications
You must be signed in to change notification settings - Fork 20
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
3 fold repetition #67
Comments
Oh yes you are right ! I always thought 3 fold rep needed to be consecutive, do you want to take the pr ? else I might fix it this week, nice catch @nicholasmello |
I'll take a look at it if I have time, my focus is on getting #65 flushed out. If someone takes a look at this before me, one thing to remember is "Two positions are by definition "the same" if the same types of pieces occupy the same squares, the same player has the move, the remaining castling rights are the same and the possibility to capture en passant is the same". Castling rights and the possibility of en passant are the obscure rules that often get left out. |
Description
3 fold repetition only checks moves in a row, it should check if the position repeats regardless of order
To Reproduce
Play a game and repeat the position, outside of the same order
Expected behavior
Draw in all repetition scenarios
Environment
OS: Linux (NixOS)
Terminal Emulator: Alacritty
Additional context
This function just needs to be rewritten
The text was updated successfully, but these errors were encountered: