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/zobrist.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/zobrist.hpp') 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 -- cgit v1.2.3