Skip to content

Commit

Permalink
only skip static eval when oppo5
Browse files Browse the repository at this point in the history
eval set to VALUE_NONE

test r15
  • Loading branch information
dhbloo committed Jun 13, 2024
1 parent fa863d2 commit 71c1c95
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Rapfi/search/ab/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -804,13 +804,12 @@ 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
if (oppo5) {
// Use static evaluation from previous ply if opponent makes a five attack
ss->staticEval = -(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 71c1c95

Please sign in to comment.