diff --git a/Rapfi/search/ab/search.cpp b/Rapfi/search/ab/search.cpp index 98b6ecc..47470f4 100644 --- a/Rapfi/search/ab/search.cpp +++ b/Rapfi/search/ab/search.cpp @@ -844,7 +844,9 @@ 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 || !ttHit) // We are not searching for a short win + && eval + razorMargin(depth) < alpha) { return vcfsearch(board, ss, alpha, alpha + 1); }