Skip to content

Commit

Permalink
remove all vcfsearch
Browse files Browse the repository at this point in the history
  • Loading branch information
dhbloo committed Oct 13, 2024
1 parent 0242b95 commit 72ff3f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Rapfi/search/ab/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ Value search(Board &board, SearchStack *ss, Value alpha, Value beta, Depth depth
if (!PvNode
&& (alpha < VALUE_MATE_IN_MAX_PLY || !ttHit) // We are not searching for a short win
&& eval + razorMargin<Rule>(depth) < alpha) {
return vcfsearch<Rule, NonPV>(board, ss, alpha, alpha + 1);
return eval;
}

// Step 8. Futility pruning: child node (~121 elo)
Expand Down Expand Up @@ -889,9 +889,9 @@ Value search(Board &board, SearchStack *ss, Value alpha, Value beta, Depth depth
if (PvNode && depth > 1 && ttMove)
depth -= std::clamp((depth - ttDepth) * IIR_REDUCTION_TT, 0.0f, IIR_REDUCTION_TT_MAX);

// Drop to vcfsearch if depth is below zero
// Drop to leaf node if depth is below zero
if (depth <= 0)
return vcfsearch<Rule, NT>(board, ss, alpha, beta);
return search<Rule, NT>(board, ss, alpha, beta, depth, cutNode);

// Internal iterative deepening on higher depth (~1 elo)
if (depth >= IID_DEPTH && !ttMove) {
Expand Down

0 comments on commit 72ff3f6

Please sign in to comment.