]> git.sesse.net Git - stockfish/commitdiff
Razor more if ss+1 cutoffCnt > 3
authorcandirufish <38038147+candirufish@users.noreply.github.com>
Sat, 7 Oct 2023 12:46:03 +0000 (14:46 +0200)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Sun, 8 Oct 2023 05:50:03 +0000 (07:50 +0200)
STC:
LLR: 2.95 (-2.94,2.94) <0.00,2.00>
Total: 221760 W: 56726 L: 56144 D: 108890
Ptnml(0-2): 655, 25453, 58123, 25953, 696
https://tests.stockfishchess.org/tests/view/651d34dbcff46e538ee05d91

LTC:
LLR: 2.95 (-2.94,2.94) <0.50,2.50>
Total: 130326 W: 33188 L: 32681 D: 64457
Ptnml(0-2): 69, 13949, 36620, 14456, 69
https://tests.stockfishchess.org/tests/view/651f844eac577114367273d5

closes https://github.com/official-stockfish/Stockfish/pull/4822

bench: 1291708

src/search.cpp

index f49c23aed6571dcc8a6d024f3f2b813fb08a3290..a5b5c101e695c41abc0c9dd3b82c2a6b4860441c 100644 (file)
@@ -766,7 +766,8 @@ namespace {
     // Step 7. Razoring (~1 Elo)
     // If eval is really low check with qsearch if it can exceed alpha, if it can't,
     // return a fail low.
-    if (eval < alpha - 456 - 252 * depth * depth)
+    // Adjust razor margin according to cutoffCnt. (~1 Elo)
+    if (eval < alpha - 456 - (252 - 200 * ((ss+1)->cutoffCnt > 3)) * depth * depth)
     {
         value = qsearch<NonPV>(pos, ss, alpha - 1, alpha);
         if (value < alpha)