Skip to content

Commit

Permalink
half fail high reduction for H_FLEX3 moves
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 67b194f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Rapfi/search/ab/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1076,13 +1076,15 @@ Value search(Board &board, SearchStack *ss, Value alpha, Value beta, Depth depth
extension += (distSelf <= 4 ? 0.20f : 0.05f);
}

// Fail high reduction
// Fail High Reduction/Extension
if (likelyFailHigh) {
if (ss->moveP4[self] >= E_BLOCK4) {
// If we failed high for two continous E_BLOCK4 moves, extend rather than reduce
if ((ss - 2)->moveP4[self] >= E_BLOCK4)
extension += 1.0f;
}
else if (ss->moveP4[self] >= H_FLEX3)
extension -= 0.5f;
else
extension -= 1.0f;
}
Expand Down

0 comments on commit 67b194f

Please sign in to comment.