diff options
| author | Adam <adammegarules1@gmail.com> | 2026-08-19 21:19:32 +0200 |
|---|---|---|
| committer | Adam <adammegarules1@gmail.com> | 2026-08-19 21:19:32 +0200 |
| commit | d10a05eb92423777c6ff32edd14a1bea32214801 (patch) | |
| tree | c5b6868b7b2c8444dc42898bd569a0f7f3778726 /src/uci.cpp | |
| parent | 692029dd4614fd4b5f99538be0b46153eb8a19bc (diff) | |
perf(board): making hashing use incremental XORs instead of rebuild from scratch
Diffstat (limited to 'src/uci.cpp')
| -rw-r--r-- | src/uci.cpp | 2 |
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) { |
