From 45154ebda0170659fbe9cd122230953331877a8b Mon Sep 17 00:00:00 2001 From: dhb <1084714805@qq.com> Date: Thu, 13 Jun 2024 17:10:46 +0800 Subject: [PATCH] do FHR only when no other extension --- Rapfi/search/ab/search.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rapfi/search/ab/search.cpp b/Rapfi/search/ab/search.cpp index d2ae5f81..68eca731 100644 --- a/Rapfi/search/ab/search.cpp +++ b/Rapfi/search/ab/search.cpp @@ -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)