Skip to content

Commit

Permalink
do FHR only when no other extension
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 a438a99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rapfi/search/ab/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1076,8 +1076,8 @@ Value search(Board &board, SearchStack *ss, Value alpha, Value beta, Depth depth
extension += (distSelf <= 4 ? 0.20f : 0.05f);
}

// Fail high reduction
if (likelyFailHigh) {
// Fail high reduction/extension
else 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)
Expand Down

0 comments on commit a438a99

Please sign in to comment.