From fa53cfa52d92d9306cd6f8bd227147ab0d4c2611 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 20 Aug 2026 10:41:26 +0200 Subject: refactor(hash): refactoring hash logic to be better --- src/hash.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/hash.hpp (limited to 'src/hash.hpp') diff --git a/src/hash.hpp b/src/hash.hpp new file mode 100644 index 0000000..6253363 --- /dev/null +++ b/src/hash.hpp @@ -0,0 +1,14 @@ +#ifndef SRC_HASH_H_ +#define SRC_HASH_H_ + +#include "board/board.hpp" +#include + +void InitHashing(); +uint64_t GenerateHashFromScratch(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); + +#endif /* SRC_HASH_H_ */ -- cgit v1.2.3