From 3a0418c0d0353ad5720e1fea83510cbee5608485 Mon Sep 17 00:00:00 2001 From: Daniel Monroe Date: Tue, 4 Feb 2025 15:16:28 -0800 Subject: [PATCH] Simplify opponent worsening Passed simplification STC LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 57120 W: 14712 L: 14526 D: 27882 Ptnml(0-2): 53, 6241, 15796, 6407, 63 https://tests.stockfishchess.org/tests/view/67a26153eb183d11c659454d Passed simplification LTC LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 313452 W: 79893 L: 79973 D: 153586 Ptnml(0-2): 279, 35053, 86156, 34945, 293 https://tests.stockfishchess.org/tests/view/67a29fe0fedef70e42ac32ae closes https://github.com/official-stockfish/Stockfish/pull/5867 Bench: 2582245 --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index 36823a08..be511791 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -804,7 +804,7 @@ Value Search::Worker::search( // false otherwise. The improving flag is used in various pruning heuristics. improving = ss->staticEval > (ss - 2)->staticEval; - opponentWorsening = ss->staticEval + (ss - 1)->staticEval > 5; + opponentWorsening = ss->staticEval > -(ss - 1)->staticEval; if (priorReduction >= 3 && !opponentWorsening) depth++;