diff options
| author | Adam <adammegarules1@gmail.com> | 2026-08-18 12:27:29 +0200 |
|---|---|---|
| committer | Adam <adammegarules1@gmail.com> | 2026-08-18 12:27:29 +0200 |
| commit | 56cbe07135f1b235747ea90f7308948fdd08abd0 (patch) | |
| tree | 61b187eedc541c2e805a9ece2bd5b198e3145b30 /src/bot.cpp | |
| parent | d2fdbb23bb56d9e06b1f11623c6475e6928f98e1 (diff) | |
fix(book): making engine turn caslting moves into uci perpesentation only if there is a king
Diffstat (limited to 'src/bot.cpp')
| -rw-r--r-- | src/bot.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bot.cpp b/src/bot.cpp index 99f60aa..e9b0b4d 100644 --- a/src/bot.cpp +++ b/src/bot.cpp @@ -325,7 +325,7 @@ uint16_t GetBestMove(Game *b, int maxDepth, move_options options) { uint64_t hash = GenerateZobristKey(b); if (b->MoveClock <= BOOK_DEPTH) { - std::optional<uint16_t> bookMove = ProbeBook(hash); + std::optional<uint16_t> bookMove = ProbeBook(hash, *b); if (bookMove.has_value()) { return bookMove.value(); } |
