Closed Skoolin closed 11 months ago
We saw there is a bounds check in the Push method. count++;
is not included inside the bounds check. if it where, it would not detect any repetitions after ply 256 has been reached but not crash.
I've increased the size as proposed, thanks!
If the game takes longer than 256 plies, it crashes.
int[] startindices
undint[] hashes
are only of size 256.proposal for a fix:
hashes = new ulong[1024];
inChessChallenge.Chess.RepetitionTable