Skip to content

Commit

Permalink
try use tteval for static eval when oppo5
Browse files Browse the repository at this point in the history
test r15
  • Loading branch information
dhbloo committed Jun 13, 2024
1 parent fa863d2 commit de266ba
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Rapfi/search/ab/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -804,13 +804,11 @@ Value search(Board &board, SearchStack *ss, Value alpha, Value beta, Depth depth
(ss + 2)->killers[0] = Pos::NONE;
(ss + 2)->killers[1] = Pos::NONE;

if (oppo4) {
// Use static evaluation from previous ply if opponent makes a four/five attack
ss->staticEval = -(ss - 1)->staticEval;
if (oppo5) {
ss->staticEval = (ttHit && ttEval != VALUE_NONE) ? ttEval : -(ss - 1)->staticEval;

// Skip early pruning when we only have one possible move
if (oppo5)
goto moves_loop;
goto moves_loop;
}
else if (!RootNode) {
if (ttHit) {
Expand Down

0 comments on commit de266ba

Please sign in to comment.