Skip to content

Commit

Permalink
Replace depth increase condition with !opponentWorsening
Browse files Browse the repository at this point in the history
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 official-stockfish#5798

bench 1632964
  • Loading branch information
vondele committed Jan 18, 2025
1 parent f00d91f commit 8e3e22b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8e3e22b

Please sign in to comment.