Tweak singular extension for horde
authorFabian Fichter <ianfab@users.noreply.github.com>
Sat, 27 Feb 2021 23:20:07 +0000 (00:20 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sat, 27 Feb 2021 23:20:07 +0000 (00:20 +0100)
horde STC
LLR: -2.95 (-2.94,2.94) [0.00,10.00]
Total: 4108 W: 2008 L: 2050 D: 50
http://www.variantfishtest.org:6543/tests/view/60291c396e23db669974e90c

horde LTC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 9687 W: 4917 L: 4676 D: 94
http://www.variantfishtest.org:6543/tests/view/6029a4e46e23db669974e910

horde VLTC
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 11750 W: 5938 L: 5667 D: 145
http://www.variantfishtest.org:6543/tests/view/602e57606e23db669974e923

src/search.cpp

index 0333a67..abaed2d 100644 (file)
@@ -1168,7 +1168,7 @@ moves_loop: // When in check, search starts from here
       // then that move is singular and should be extended. To verify this we do
       // a reduced search on all the other moves but the ttMove and if the
       // result is lower than ttValue minus a margin, then we will extend the ttMove.
-      if (    depth >= 7
+      if (    depth >= 7 - 2 * (pos.count<KING>() == 1)
           &&  move == ttMove
           && !rootNode
           && !excludedMove // Avoid recursive singular search