Skip to content

Commit

Permalink
Take 1
Browse files Browse the repository at this point in the history
bench 1517478
  • Loading branch information
Viren6 committed Jan 19, 2025
1 parent 8e3e22b commit 391bf2b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -979,10 +979,6 @@ Value Search::Worker::search(

Depth r = reduction(improving, depth, moveCount, delta);

// Decrease reduction if position is or has been on the PV (~7 Elo)
if (ss->ttPv)
r -= 1037 + (ttData.value > alpha) * 965 + (ttData.depth >= depth) * 960;

// Step 14. Pruning at shallow depth (~120 Elo).
// Depth conditions are important for mate finding.
if (!rootNode && pos.non_pawn_material(us) && !is_loss(bestValue))
Expand Down Expand Up @@ -1149,6 +1145,10 @@ Value Search::Worker::search(
// so changing them or adding conditions that are similar requires
// tests at these types of time controls.

// Decrease reduction if position is or has been on the PV (~7 Elo)
if (ss->ttPv)
r -= 1037 + (ttData.value > alpha) * 965 + (ttData.depth >= depth) * 960;

// Decrease reduction for PvNodes (~0 Elo on STC, ~2 Elo on LTC)
if (PvNode)
r -= 1018;
Expand Down

0 comments on commit 391bf2b

Please sign in to comment.