Disable shallow depth pruning of captures
authorFabian Fichter <ianfab@users.noreply.github.com>
Mon, 10 Aug 2020 17:14:51 +0000 (19:14 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Mon, 10 Aug 2020 17:14:51 +0000 (19:14 +0200)
giveaway STC
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 733 W: 315 L: 224 D: 194
http://www.variantfishtest.org:6543/tests/view/5f300b6e6e23db104fb88ea3

giveaway LTC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 1300 W: 522 L: 424 D: 354
http://www.variantfishtest.org:6543/tests/view/5f3013386e23db104fb88eb2

src/search.cpp

index e8461f0..616c61c 100644 (file)
@@ -1119,7 +1119,7 @@ moves_loop: // When in check, search starts from here
               if (!pos.see_ge(move, Value(-(32 - std::min(lmrDepth, 18) + 10 * !!pos.capture_the_flag_piece()) * lmrDepth * lmrDepth)))
                   continue;
           }
-          else
+          else if (!pos.must_capture())
           {
               // Capture history based pruning when the move doesn't give check
               if (   !givesCheck