aboutsummaryrefslogtreecommitdiff
path: root/src/zobrist.hpp
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/zobrist.hpp
parent692029dd4614fd4b5f99538be0b46153eb8a19bc (diff)
perf(board): making hashing use incremental XORs instead of rebuild from scratch
Diffstat (limited to 'src/zobrist.hpp')
-rw-r--r--src/zobrist.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/zobrist.hpp b/src/zobrist.hpp
index e23facf..b72b0f2 100644
--- a/src/zobrist.hpp
+++ b/src/zobrist.hpp
@@ -5,3 +5,7 @@ struct Game;
void InitZobrist();
uint64_t GenerateZobristKey(Game *b);
+void xorCastleKey(bool color, bool IS_KING_SIDE, Game *g);
+void xorSidekey(Game *g);
+void xorEnpassantKey(Game *g);
+void xorSquare(uint8_t square, Game *g); \ No newline at end of file