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/zobrist.hpp | |
| parent | 692029dd4614fd4b5f99538be0b46153eb8a19bc (diff) | |
perf(board): making hashing use incremental XORs instead of rebuild from scratch
Diffstat (limited to 'src/zobrist.hpp')
| -rw-r--r-- | src/zobrist.hpp | 4 |
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 |
