aboutsummaryrefslogtreecommitdiff
path: root/src/bot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bot.cpp')
-rw-r--r--src/bot.cpp4
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);