Open nicholasmello opened 4 months ago
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