]> git.sesse.net Git - stockfish/commitdiff
Reduce on ttcaptures if not capture
authorDaniel Monroe <github.com@danielmonroe.net>
Mon, 2 Sep 2024 00:56:09 +0000 (20:56 -0400)
committerDisservin <disservin.social@gmail.com>
Mon, 9 Sep 2024 15:48:26 +0000 (17:48 +0200)
Tweak ttcapture reduction.
Reduce on ttcaptures only if the current move is a capture

Passed STC:
LLR: 2.93 (-2.94,2.94) <0.00,2.00>
Total: 94912 W: 24896 L: 24492 D: 45524
Ptnml(0-2): 301, 11197, 24087, 11539, 332
https://tests.stockfishchess.org/tests/view/66cd2264bf8c9d8780fdab34

Passed LTC:
LLR: 2.94 (-2.94,2.94) <0.50,2.50>
Total: 60738 W: 15465 L: 15096 D: 30177
Ptnml(0-2): 42, 6573, 16775, 6932, 47
https://tests.stockfishchess.org/tests/view/66cf356d9de3e7f9b33d0fde

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

Bench: 1268700

src/search.cpp

index bc85a5c3e96f0737d5c27a2dc5d0b792cc85f7e7..aab5c743cc5539a21e6e7ffaaa2fe1d3a8406aa9 100644 (file)
@@ -1140,8 +1140,8 @@ moves_loop:  // When in check, search starts here
         if (cutNode)
             r += 2 - (ttData.depth >= depth && ss->ttPv);
 
-        // Increase reduction if ttMove is a capture (~3 Elo)
-        if (ttCapture)
+        // Increase reduction if ttMove is a capture but the current move is not a capture (~3 Elo)
+        if (ttCapture && !capture)
             r++;
 
         // Increase reduction if next ply has a lot of fail high (~5 Elo)