aboutsummaryrefslogtreecommitdiff
path: root/src/uci.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/uci.cpp')
-rw-r--r--src/uci.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/uci.cpp b/src/uci.cpp
index 6e30014..e65bf73 100644
--- a/src/uci.cpp
+++ b/src/uci.cpp
@@ -15,10 +15,10 @@
#include "board/fen.hpp"
#include "book.hpp"
#include "bot.hpp"
+#include "hash.hpp"
#include "misc.hpp"
#include "moves.hpp"
#include "uci.hpp"
-#include "zobrist.hpp"
static const std::string starting_fen =
"rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1";
@@ -94,7 +94,7 @@ Game initBoard(
setBoardFen(startingFEN, &g);
- uint64_t key = GenerateZobristKey(&g);
+ uint64_t key = GenerateHashFromScratch(&g);
g.history.push_back(key);
g.hash = key;
@@ -349,7 +349,7 @@ void Uci() {
movesCommnad(&game);
}
if (cmd == "hash") {
- uint64_t hash = GenerateZobristKey(&game);
+ uint64_t hash = GenerateHashFromScratch(&game);
std::cout << hash << "\n";
}
}