From 25443824ed1939e70e49cb63e6919e234534be14 Mon Sep 17 00:00:00 2001 From: 87 Date: Sat, 3 Oct 2026 01:16:03 +0200 Subject: [PATCH] Bench: 12337575 --- src/repetition_info.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/repetition_info.cpp b/src/repetition_info.cpp index fc7daf89..7a453325 100644 --- a/src/repetition_info.cpp +++ b/src/repetition_info.cpp @@ -4,6 +4,7 @@ #include "position.hpp" #include "rays.hpp" #include "util/types.hpp" +#include "zobrist.hpp" #include namespace Clockwork { @@ -73,12 +74,12 @@ bool RepetitionInfo::has_game_cycle(const Position& pos, usize ply) { Bitboard occ = pos.board().get_occupied_bitboard(); HashKey original_key = pos.get_hash_key(); - HashKey other = ~(original_key ^ old_key(2)); + HashKey other = original_key ^ old_key(2) ^ Zobrist::side_key; for (usize i = 3; i <= end; i += 2) { HashKey curr_key = old_key(i + 1); - other ^= ~(curr_key ^ old_key(i)); + other ^= curr_key ^ old_key(i) ^ Zobrist::side_key; if (other != 0) { continue; }