Skip SEE pruning of quiet moves for antichess variants
authorFabian Fichter <ianfab@users.noreply.github.com>
Thu, 20 Sep 2018 19:42:11 +0000 (21:42 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Fri, 21 Sep 2018 20:19:03 +0000 (22:19 +0200)
STC giveaway
LLR: 2.94 (-2.94,2.94) [0.00,10.00]
Total: 108 W: 86 L: 7 D: 15
http://35.161.250.236:6543/tests/view/5ba3f8816e23db0fbab0dda0

STC losers
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 285 W: 180 L: 82 D: 23
http://35.161.250.236:6543/tests/view/5ba3fc4f6e23db0fbab0dda8

src/search.cpp

index d2b8255..cb09d15 100644 (file)
@@ -966,7 +966,7 @@ moves_loop: // When in check, search starts from here
                   continue;
 
               // Prune moves with negative SEE (~10 Elo)
-              if (!pos.see_ge(move, Value(-29 * lmrDepth * lmrDepth)))
+              if (!pos.must_capture() && !pos.see_ge(move, Value(-29 * lmrDepth * lmrDepth)))
                   continue;
           }
           else if (   !extension // (~20 Elo)