aboutsummaryrefslogtreecommitdiff
path: root/src/zobrist.hpp
diff options
context:
space:
mode:
authorAdam <adammegarules1@gmail.com>2026-07-31 20:27:02 +0200
committerAdam <adammegarules1@gmail.com>2026-07-31 20:27:02 +0200
commit1b006985ba2381a29dd9aa34aec1dafbae224897 (patch)
treee437b4a1ec54cf043f7272a3fc5d3060f5706a37 /src/zobrist.hpp
parentee7815bad917cf880c147186a01679fb7ce46a8e (diff)
using cpp check on this project
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..575d912
--- /dev/null
+++ b/src/zobrist.hpp
@@ -0,0 +1,11 @@
+#pragma once
+#include "board/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);