Skip to content

Commit

Permalink
ablation: no extra extension in lmr
Browse files Browse the repository at this point in the history
test r15
  • Loading branch information
dhbloo committed Jul 26, 2024
1 parent 49a8c22 commit d607967
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Rapfi/search/ab/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1161,13 +1161,13 @@ Value search(Board &board, SearchStack *ss, Value alpha, Value beta, Depth depth
value = -search<Rule, NonPV>(board, ss + 1, -(alpha + 1), -alpha, d, true);

if (value > alpha && d < newDepth) {
Depth ext = lmrExtension<Rule>(newDepth, d, value, alpha, bestValue);
// Do not allow more extension if extra extension is already high
if (ss->extraExtension >= LMR_EXTRA_MAX_DEPTH)
ext = std::min(ext, 1.0f);
else
ss->extraExtension += std::max(ext - 1.0f, 0.0f);
newDepth += ext;
//Depth ext = lmrExtension<Rule>(newDepth, d, value, alpha, bestValue);
//// Do not allow more extension if extra extension is already high
//if (ss->extraExtension >= LMR_EXTRA_MAX_DEPTH)
// ext = std::min(ext, 1.0f);
//else
// ss->extraExtension += std::max(ext - 1.0f, 0.0f);
//newDepth += ext;

if (d < newDepth)
value = -search<Rule, NonPV>(board,
Expand Down

0 comments on commit d607967

Please sign in to comment.