Skip to content

Commit

Permalink
no vcf evaluation
Browse files Browse the repository at this point in the history
use alpha to replace static eval

test f15
  • Loading branch information
dhbloo committed Oct 13, 2024
1 parent b06b9cf commit 0d580f6
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Rapfi/search/ab/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1560,7 +1560,7 @@ Value vcfsearch(Board &board, SearchStack *ss, Value alpha, Value beta, Depth de
if (ttEval != VALUE_NONE)
ss->staticEval = ttEval;
else if (depth < 0)
ss->staticEval = Evaluation::evaluate<Rule>(board, alpha, beta);
ss->staticEval = alpha;
bestValue = ss->staticEval;

// Try to use ttValue as a better eval estimation
Expand All @@ -1569,12 +1569,8 @@ Value vcfsearch(Board &board, SearchStack *ss, Value alpha, Value beta, Depth de
bestValue = ttValue;
}
else {
if (depth < 0) {
// In case of null move search use previous static eval with a different sign
ss->staticEval = (ss - 1)->currentMove == Pos::PASS
? -(ss - 1)->staticEval
: Evaluation::evaluate<Rule>(board, alpha, beta);
}
if (depth < 0)
ss->staticEval = alpha;

bestValue = ss->staticEval;
}
Expand Down

0 comments on commit 0d580f6

Please sign in to comment.