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/bot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bot.cpp') diff --git a/src/bot.cpp b/src/bot.cpp index 969606e..9e9b624 100644 --- a/src/bot.cpp +++ b/src/bot.cpp @@ -15,8 +15,8 @@ #include "book.hpp" #include "bot.hpp" #include "evaluate.hpp" +#include "hash.hpp" #include "moves.hpp" -#include "zobrist.hpp" constexpr int DEFAULT_TIME = 7; constexpr int Q_DEPTH_LIMIT = 4; @@ -320,7 +320,7 @@ uint16_t GetBestMove(Game *b, int maxDepth, move_options options) { searchStopped = false; Nodes = 0; - uint64_t hash = GenerateZobristKey(b); + uint64_t hash = GenerateHashFromScratch(b); if (b->MoveClock <= BOOK_DEPTH) { std::optional bookMove = ProbeBook(hash, *b); -- cgit v1.2.3