]> git.sesse.net Git - stockfish/commitdiff
Simplify futility pruning formula
authorTaras Vuk <117687515+TarasVuk@users.noreply.github.com>
Wed, 25 Oct 2023 14:00:58 +0000 (16:00 +0200)
committerDisservin <disservin.social@gmail.com>
Fri, 27 Oct 2023 15:16:28 +0000 (17:16 +0200)
closes https://github.com/official-stockfish/Stockfish/pull/4848

No functional change

src/search.cpp

index 9cef7e5f558225f5d6be62329f5ac47c2fe9c34a..24f0d9946f7ec598604ba8b60eb937437523847f 100644 (file)
@@ -775,7 +775,7 @@ Value search(Position& pos, Stack* ss, Value alpha, Value beta, Depth depth, boo
                - (ss - 1)->statScore / 321
              >= beta
         && eval >= beta && eval < 29462  // smaller than TB wins
-        && !(!ttCapture && ttMove))
+        && (!ttMove || ttCapture))
         return eval;
 
     // Step 9. Null move search with verification search (~35 Elo)