diff options
| author | Adam <adammegarules1@gmail.com> | 2026-08-02 13:14:55 +0200 |
|---|---|---|
| committer | Adam <adammegarules1@gmail.com> | 2026-08-02 13:14:55 +0200 |
| commit | 9d2a95f566c5cb31d92af969d052b665ccbea9be (patch) | |
| tree | e6ceb7c1ba9c938f5aced88a667fa96d2533db31 /src/bot.cpp | |
| parent | f948514c5337961444f555374523902ae94dd00f (diff) | |
caching kign position
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 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"); |
