From 9d2a95f566c5cb31d92af969d052b665ccbea9be Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 2 Aug 2026 13:14:55 +0200 Subject: caching kign position --- 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 cffa202..3567ef3 100644 --- a/src/bot.cpp +++ b/src/bot.cpp @@ -254,7 +254,7 @@ Move GetBestMove(Game *b, const int maxDepth) { Nodes = 0; int actualDepth = maxDepth > 0 ? maxDepth : MAXIMUM_DEPTH; - bool usingDefaultDepth = maxDepth > 0; + bool usingDefaultDepth = maxDepth < 0; auto legalMoves = GetSortedLegalMoves(b, true, nullptr); if (legalMoves.empty()) { assert(false && "GetBestMove called with no legal moves"); -- cgit v1.2.3