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
This commit is contained in:
Daniel Monroe
2025-02-04 15:16:28 -08:00
committed by Disservin
parent e089f723d8
commit 3a0418c0d0
+1 -1
View File
@@ -804,7 +804,7 @@ Value Search::Worker::search(
// false otherwise. The improving flag is used in various pruning heuristics. // false otherwise. The improving flag is used in various pruning heuristics.
improving = ss->staticEval > (ss - 2)->staticEval; improving = ss->staticEval > (ss - 2)->staticEval;
opponentWorsening = ss->staticEval + (ss - 1)->staticEval > 5; opponentWorsening = ss->staticEval > -(ss - 1)->staticEval;
if (priorReduction >= 3 && !opponentWorsening) if (priorReduction >= 3 && !opponentWorsening)
depth++; depth++;