Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -751,9 +751,9 @@ Value Search::Worker::search(
opponentWorsening = ss->staticEval > -(ss - 1)->staticEval;

// Hindsight adjustment of reductions based on static evaluation difference.
if (priorReduction >= 3 && !opponentWorsening)
if (priorReduction >= 3200 && !opponentWorsening)
depth++;
if (priorReduction >= 2 && depth >= 2 && ss->staticEval + (ss - 1)->staticEval > 173)
if (priorReduction >= 2000 && depth >= 2 && ss->staticEval + (ss - 1)->staticEval > 173)
depth--;

// At non-PV nodes we check for an early TT cutoff
Expand Down Expand Up @@ -929,7 +929,7 @@ Value Search::Worker::search(
// Step 10. Internal iterative reductions
// At sufficient depth, reduce depth for PV/Cut nodes without a TTMove.
// (*Scaler) Making IIR more aggressive scales poorly.
if (!allNode && depth >= 6 && !ttData.move && priorReduction <= 3)
if (!allNode && depth >= 6 && !ttData.move && priorReduction <= 3072)
depth--;

// Step 11. ProbCut
Expand Down Expand Up @@ -1237,7 +1237,7 @@ Value Search::Worker::search(
// std::clamp has been replaced by a more robust implementation.
Depth d = std::max(1, std::min(newDepth - r / 1024, newDepth + 2)) + PvNode;

ss->reduction = newDepth - d;
ss->reduction = r;
value = -search<NonPV>(pos, ss + 1, -(alpha + 1), -alpha, d, true);
ss->reduction = 0;

Expand Down
Loading