aboutsummaryrefslogtreecommitdiff
path: root/src/uci.cpp
diff options
context:
space:
mode:
authorAdam <adammegarules1@gmail.com>2026-08-19 21:19:32 +0200
committerAdam <adammegarules1@gmail.com>2026-08-19 21:19:32 +0200
commitd10a05eb92423777c6ff32edd14a1bea32214801 (patch)
treec5b6868b7b2c8444dc42898bd569a0f7f3778726 /src/uci.cpp
parent692029dd4614fd4b5f99538be0b46153eb8a19bc (diff)
perf(board): making hashing use incremental XORs instead of rebuild from scratch
Diffstat (limited to 'src/uci.cpp')
-rw-r--r--src/uci.cpp2
1 files changed, 2 insertions, 0 deletions
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) {