From f97a86e213fd352a1a7017e5c98608cefc3ef1fa Mon Sep 17 00:00:00 2001 From: Dubslow Date: Fri, 7 Oct 2022 05:44:29 -0500 Subject: [PATCH] Remove depth condition from razoring The eval condition depends on depth anyways, so this patch is nearly (not quite) non-functional passed STC: https://tests.stockfishchess.org/tests/view/63428169fb7ccb2ea9be2629 LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 185992 W: 49612 L: 49558 D: 86822 Ptnml(0-2): 618, 19956, 51842, 19914, 666 passed LTC: https://tests.stockfishchess.org/tests/view/634418b14bc7650f07540760 LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 126816 W: 34147 L: 34043 D: 58626 Ptnml(0-2): 74, 11941, 39281, 12031, 81 closes https://github.com/official-stockfish/Stockfish/pull/4196 bench 4148700 --- src/search.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 3c2ae3e5..898de875 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -775,8 +775,7 @@ namespace { // Step 7. Razoring. // If eval is really low check with qsearch if it can exceed alpha, if it can't, // return a fail low. - if ( depth <= 7 - && eval < alpha - 369 - 254 * depth * depth) + if (eval < alpha - 369 - 254 * depth * depth) { value = qsearch(pos, ss, alpha - 1, alpha); if (value < alpha) -- 2.39.2