aboutsummaryrefslogtreecommitdiff
path: root/src/zobrist.hpp
diff options
context:
space:
mode:
authorAdam <adammegarules1@gmail.com>2026-07-28 11:15:08 +0200
committerAdam <adammegarules1@gmail.com>2026-07-28 11:15:08 +0200
commit3109a2516e75072835f1998a9b702003781612d5 (patch)
treee0e2bbe0a1f31876884a65232557ec27f6816e57 /src/zobrist.hpp
parentbb30752226c59148ae36beb248c8e4ed6eac39d1 (diff)
preventing 3 fold repetion
Diffstat (limited to 'src/zobrist.hpp')
-rw-r--r--src/zobrist.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/zobrist.hpp b/src/zobrist.hpp
new file mode 100644
index 0000000..8de9d42
--- /dev/null
+++ b/src/zobrist.hpp
@@ -0,0 +1,11 @@
+#pragma once
+#include "board.hpp"
+#include <cstdint>
+
+extern uint64_t PieceKeys[2][7][64];
+extern uint64_t SideKey;
+extern uint64_t CastleKeys[16];
+extern uint64_t EnPassantKeys[8];
+
+void InitZobrist();
+uint64_t GenerateZobristKey(Game *b);