From 8e3e22b3d4f214e12aa83771be543aac1196d713 Mon Sep 17 00:00:00 2001 From: Joost VandeVondele Date: Sat, 18 Jan 2025 21:32:18 +0100 Subject: [PATCH] Replace depth increase condition with !opponentWorsening Passed simplification STC LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 220544 W: 57417 L: 57399 D: 105728 Ptnml(0-2): 816, 26554, 55540, 26520, 842 https://tests.stockfishchess.org/tests/view/678970e38082388fa0cbfe02 Passed simplification LTC LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 132600 W: 33868 L: 33760 D: 64972 Ptnml(0-2): 126, 14770, 36390, 14898, 116 https://tests.stockfishchess.org/tests/view/678accabc00c743bc9e9fc7f closes https://github.com/official-stockfish/Stockfish/pull/5798 bench 1632964 --- src/search.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index d5e86ca9444..e99d5d3fc9f 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -781,10 +781,8 @@ Value Search::Worker::search( opponentWorsening = ss->staticEval + (ss - 1)->staticEval > 2; - if (priorReduction >= 3 && ss->staticEval + (ss - 1)->staticEval < 0) - { + if (priorReduction >= 3 && !opponentWorsening) depth++; - } // Step 7. Razoring (~1 Elo) // If eval is really low, skip search entirely and return the qsearch value.