diff options
| author | Adam <adammegarules1@gmail.com> | 2026-08-20 10:41:26 +0200 |
|---|---|---|
| committer | Adam <adammegarules1@gmail.com> | 2026-08-20 10:41:26 +0200 |
| commit | fa53cfa52d92d9306cd6f8bd227147ab0d4c2611 (patch) | |
| tree | 9e12a2ffeca15804acb1a2bf53f8b721d1b997c5 /src/hash.hpp | |
| parent | d10a05eb92423777c6ff32edd14a1bea32214801 (diff) | |
refactor(hash): refactoring hash logic to be better
Diffstat (limited to 'src/hash.hpp')
| -rw-r--r-- | src/hash.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
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 <cstdint> + +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_ */ |
