From c9d9bddf3df97ef7987c9824747ec1602522b542 Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Sat, 18 Jul 2026 18:45:15 +0530 Subject: zobrist hashing --- include/engine/transposition_table.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 include/engine/transposition_table.h (limited to 'include/engine/transposition_table.h') diff --git a/include/engine/transposition_table.h b/include/engine/transposition_table.h new file mode 100644 index 0000000..f06ddbe --- /dev/null +++ b/include/engine/transposition_table.h @@ -0,0 +1,16 @@ +#ifndef TRANSPOSITION_TABLE_H +#define TRANSPOSITION_TABLE_H + +#include "bitboard.h" + +static struct zobrist_keys { + u64 piece[PIECE_TYPE_COUNT][64]; + u64 castle[CASTLE_COUNT]; + u64 turn[TURN_COUNT]; + u64 en_passant[64]; +} zobrist_keys; + +void transposition_table_init(); +u64 zobrist_hash(position_t position); + +#endif // TRANSPOSITION_TABLE_H -- cgit v1.2.3