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/uci.cpp | |
| parent | d10a05eb92423777c6ff32edd14a1bea32214801 (diff) | |
refactor(hash): refactoring hash logic to be better
Diffstat (limited to 'src/uci.cpp')
| -rw-r--r-- | src/uci.cpp | 6 |
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"; } } |
