]> git.sesse.net Git - stockfish/commitdiff
Penalise the TT move in multicut
authorcj5716 <125858804+cj5716@users.noreply.github.com>
Sun, 28 Apr 2024 00:53:28 +0000 (08:53 +0800)
committerDisservin <disservin.social@gmail.com>
Sun, 28 Apr 2024 19:36:34 +0000 (21:36 +0200)
Passed STC:
LLR: 2.99 (-2.94,2.94) <0.00,2.00>
Total: 185504 W: 48079 L: 47533 D: 89892
Ptnml(0-2): 716, 21866, 46988, 22520, 662
https://tests.stockfishchess.org/tests/view/662d9e1d6115ff6764c7f83d

Passed LTC:
LLR: 2.94 (-2.94,2.94) <0.50,2.50>
Total: 75612 W: 19351 L: 18948 D: 37313
Ptnml(0-2): 46, 8363, 20592, 8752, 53
https://tests.stockfishchess.org/tests/view/662dc9dc6115ff6764c80fea

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

Bench: 1415435

src/search.cpp

index 11373707b340b7e1b327c1acd7cc95484e19ea2b..ad59b35a545bfde6024c9e4371f8748a81a688fb 100644 (file)
@@ -1067,7 +1067,12 @@ moves_loop:  // When in check, search starts here
                 // we assume this expected cut-node is not singular (multiple moves fail high),
                 // and we can prune the whole subtree by returning a softbound.
                 else if (singularBeta >= beta)
+                {
+                    if (!ttCapture)
+                        update_quiet_stats(pos, ss, *this, ttMove, -stat_malus(depth));
+
                     return singularBeta;
+                }
 
                 // Negative extensions
                 // If other moves failed high over (ttValue - margin) without the ttMove on a reduced search,