Skip to content

Commit

Permalink
Simplify IIR
Browse files Browse the repository at this point in the history
Simplified depth reduction for PV nodes without a ttMove to 3.
  • Loading branch information
PikaCat-OuO committed Feb 24, 2024
1 parent 2757269 commit 53968f5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -705,13 +705,11 @@ Value Search::Worker::search(
}

// Step 9. Internal iterative reductions (~9 Elo)
// For PV nodes without a ttMove, we decrease depth by 2,
// or by 4 if the current position is present in the TT and
// the stored depth is greater than or equal to the current depth.
// Use qsearch if depth <= 0.
// For PV nodes without a ttMove, we decrease depth by 3.
if (PvNode && !ttMove)
depth -= 2 + 2 * (ss->ttHit && tte->depth() >= depth);
depth -= 3;

// Use qsearch if depth <= 0.
if (depth <= 0)
return qsearch<PV>(pos, ss, alpha, beta);

Expand Down

0 comments on commit 53968f5

Please sign in to comment.