aboutsummaryrefslogtreecommitdiff
path: root/src/bot.cpp
diff options
context:
space:
mode:
authorAdam <adammegarules1@gmail.com>2026-08-02 13:14:55 +0200
committerAdam <adammegarules1@gmail.com>2026-08-02 13:14:55 +0200
commit9d2a95f566c5cb31d92af969d052b665ccbea9be (patch)
treee6ceb7c1ba9c938f5aced88a667fa96d2533db31 /src/bot.cpp
parentf948514c5337961444f555374523902ae94dd00f (diff)
caching kign position
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 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");