From fccc6f624e0ea9bd55064ab839bbc720b2816d69 Mon Sep 17 00:00:00 2001 From: Nonlinear2 <131959792+Nonlinear2@users.noreply.github.com> Date: Sun, 2 Feb 2025 19:37:13 +0100 Subject: [PATCH] Reduce full depth search twice Passed STC: https://tests.stockfishchess.org/tests/view/679f429e0774dfd78deb10a5 LLR: 2.95 (-2.94,2.94) <0.00,2.00> Total: 71584 W: 18905 L: 18529 D: 34150 Ptnml(0-2): 302, 8372, 18081, 8722, 315 Passed LTC: https://tests.stockfishchess.org/tests/view/679f72a00774dfd78deb1102 LLR: 2.94 (-2.94,2.94) <0.50,2.50> Total: 353952 W: 91007 L: 90024 D: 172921 Ptnml(0-2): 375, 39163, 96921, 40138, 379 closes https://github.com/official-stockfish/Stockfish/pull/5848 Bench: 3642363 --- src/search.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 1b546311..d23e91ef 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1248,8 +1248,8 @@ moves_loop: // When in check, search starts here r += 2111; // Note that if expected reduction is high, we reduce search depth here - value = - -search(pos, ss + 1, -(alpha + 1), -alpha, newDepth - (r > 3444), !cutNode); + value = -search(pos, ss + 1, -(alpha + 1), -alpha, + newDepth - (r > 3444) - (r > 5588 && newDepth > 2), !cutNode); } // For PV nodes only, do a full PV search on the first move or after a fail high,