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/bot.cpp | |
| parent | d10a05eb92423777c6ff32edd14a1bea32214801 (diff) | |
refactor(hash): refactoring hash logic to be better
Diffstat (limited to 'src/bot.cpp')
| -rw-r--r-- | src/bot.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<uint16_t> bookMove = ProbeBook(hash, *b); |
