From 56cbe07135f1b235747ea90f7308948fdd08abd0 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 18 Aug 2026 12:27:29 +0200 Subject: fix(book): making engine turn caslting moves into uci perpesentation only if there is a king --- src/bot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bot.cpp') 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 bookMove = ProbeBook(hash); + std::optional bookMove = ProbeBook(hash, *b); if (bookMove.has_value()) { return bookMove.value(); } -- cgit v1.2.3