]> git.sesse.net Git - stockfish/commitdiff
Remove depth condition from razoring
authorDubslow <bunslow@gmail.com>
Fri, 7 Oct 2022 10:44:29 +0000 (05:44 -0500)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Sun, 16 Oct 2022 09:45:16 +0000 (11:45 +0200)
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

index 3c2ae3e52df8b0c43f8cc05a132c2adb801bef81..898de87523f6dbd4d0c5090c62a938cdb4a53866 100644 (file)
@@ -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<NonPV>(pos, ss, alpha - 1, alpha);
         if (value < alpha)