From 38a27590241e8a5ffdddf1db1e8fb3bdb1790da5 Mon Sep 17 00:00:00 2001 From: dhb <1084714805@qq.com> Date: Tue, 16 Jul 2024 15:13:23 +0800 Subject: [PATCH] disable razoring when try to find shorter win test f20, s15, r15 --- Rapfi/search/ab/search.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Rapfi/search/ab/search.cpp b/Rapfi/search/ab/search.cpp index 9f426192..5cf323e8 100644 --- a/Rapfi/search/ab/search.cpp +++ b/Rapfi/search/ab/search.cpp @@ -834,7 +834,8 @@ Value search(Board &board, SearchStack *ss, Value alpha, Value beta, Depth depth } // Step 7. Razoring with VCF (~55 elo) - if (!PvNode && eval + razorMargin(depth) < alpha) { + if (!PvNode && alpha < VALUE_MATE_IN_MAX_PLY // We are not searching for a short win + && eval + razorMargin(depth) < alpha) { return vcfsearch(board, ss, alpha, alpha + 1); }