From: Taras Vuk <117687515+TarasVuk@users.noreply.github.com> Date: Wed, 25 Oct 2023 14:00:58 +0000 (+0200) Subject: Simplify futility pruning formula X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=871ab55f01f844bd24ed768c5e734ed2c956ef78 Simplify futility pruning formula closes https://github.com/official-stockfish/Stockfish/pull/4848 No functional change --- diff --git a/src/search.cpp b/src/search.cpp index 9cef7e5f..24f0d994 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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)