aboutsummaryrefslogtreecommitdiff
path: root/src/bot.cpp
diff options
context:
space:
mode:
authorAdam <adammegarules1@gmail.com>2026-08-18 12:27:29 +0200
committerAdam <adammegarules1@gmail.com>2026-08-18 12:27:29 +0200
commit56cbe07135f1b235747ea90f7308948fdd08abd0 (patch)
tree61b187eedc541c2e805a9ece2bd5b198e3145b30 /src/bot.cpp
parentd2fdbb23bb56d9e06b1f11623c6475e6928f98e1 (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.cpp2
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();
}