]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Tweak return value in futility pruning
[stockfish] / src / search.cpp
index 160031384838abdc9ba8b5c882dc754a04bb5cd0..ba5ea2e54f9e3d7f92553016dfd503b11fa2cf12 100644 (file)
@@ -780,7 +780,7 @@ Value search(Position& pos, Stack* ss, Value alpha, Value beta, Depth depth, boo
              >= beta
         && eval >= beta && eval < 29462  // smaller than TB wins
         && (!ttMove || ttCapture))
-        return eval;
+        return (eval + beta) / 2;
 
     // Step 9. Null move search with verification search (~35 Elo)
     if (!PvNode && (ss - 1)->currentMove != MOVE_NULL && (ss - 1)->statScore < 17257 && eval >= beta