Skip to content

Commit 57d76bd

Browse files
daniel-monroevondele
authored andcommitted
Simplify depth condition in prior reduction
Passed simplification STC LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 172864 W: 45085 L: 45015 D: 82764 Ptnml(0-2): 516, 20456, 44405, 20552, 503 https://tests.stockfishchess.org/tests/view/68a24791b6fb3300203bbdb6 Passed simplification LTC LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 84738 W: 21733 L: 21578 D: 41427 Ptnml(0-2): 49, 9169, 23780, 9320, 51 https://tests.stockfishchess.org/tests/view/68a2665ab6fb3300203bc269 closes official-stockfish#6244 Bench: 2131292
1 parent 47d60a5 commit 57d76bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/search.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ Value Search::Worker::search(
824824
improving = ss->staticEval > (ss - 2)->staticEval;
825825
opponentWorsening = ss->staticEval > -(ss - 1)->staticEval;
826826

827-
if (priorReduction >= (depth < 10 ? 2 : 3) && !opponentWorsening)
827+
if (priorReduction >= 3 && !opponentWorsening)
828828
depth++;
829829
if (priorReduction >= 2 && depth >= 2 && ss->staticEval + (ss - 1)->staticEval > 173)
830830
depth--;

0 commit comments

Comments
 (0)