Skip to content

Commit

Permalink
Internal iterative reductions: decrease depth more
Browse files Browse the repository at this point in the history
For PV nodes without a ttMove, we decrease depth.
But in this patch, additionally, if the current position is found in the TT, and the stored depth in the TT is greater than or equal to
the current search depth, we decrease the search depth even further.

Passed STC:
LLR: 2.96 (-2.94,2.94) <0.00,2.00>
Total: 84384 W: 22154 L: 21761 D: 40469
Ptnml(0-2): 292, 9972, 21315, 10277, 336
https://tests.stockfishchess.org/tests/view/666b0a4d602682471b064db6

Passed LTC:
LLR: 2.95 (-2.94,2.94) <0.50,2.50>
Total: 92106 W: 23471 L: 23032 D: 45603
Ptnml(0-2): 79, 10155, 25154, 10578, 87
https://tests.stockfishchess.org/tests/view/666c423d602682471b064e56

closes official-stockfish#5397

bench: 1038234
  • Loading branch information
FauziAkram authored and vondele committed Jun 23, 2024
1 parent d5c1305 commit cc992e5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -829,9 +829,12 @@ Value Search::Worker::search(
}

// Step 10. Internal iterative reductions (~9 Elo)
// For PV nodes without a ttMove, we decrease depth by 3.
// For PV nodes without a ttMove, we decrease depth.
// Additionally, if the current position is found in the TT
// and the stored depth in the TT is greater than or equal to
// current search depth, we decrease search depth even further.
if (PvNode && !ttData.move)
depth -= 3;
depth -= 3 + (ss->ttHit && ttData.depth >= depth);

// Use qsearch if depth <= 0.
if (depth <= 0)
Expand Down

0 comments on commit cc992e5

Please sign in to comment.