diff options
| -rw-r--r-- | src/bot.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/bot.cpp b/src/bot.cpp index 13e3c57..14f7cef 100644 --- a/src/bot.cpp +++ b/src/bot.cpp @@ -210,11 +210,10 @@ static int search(int depth, Game *b, int alpha, int beta, int ply) { if (!searchStopped) { Flag flag = EXACT; - if (bestScore > beta) { - flag = UPPERBOUND; - } - if (bestScore < alphaOrig) { + if (bestScore >= beta) { flag = LOWERBOUND; + } else if (bestScore <= alphaOrig) { + flag = UPPERBOUND; } (*b->Transpositions)[gameHash] = { |
