From d10a05eb92423777c6ff32edd14a1bea32214801 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 19 Aug 2026 21:19:32 +0200 Subject: perf(board): making hashing use incremental XORs instead of rebuild from scratch --- src/uci.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/uci.cpp') diff --git a/src/uci.cpp b/src/uci.cpp index 812a0cd..6e30014 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -96,6 +96,8 @@ Game initBoard( uint64_t key = GenerateZobristKey(&g); g.history.push_back(key); + + g.hash = key; return g; }; static void PrintBitboard(uint64_t bb, const std::string &name) { -- cgit v1.2.3