Skip SEE pruning of captures for antichess variants
authorFabian Fichter <ianfab@users.noreply.github.com>
Sat, 22 Sep 2018 12:01:17 +0000 (14:01 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sat, 22 Sep 2018 20:33:33 +0000 (22:33 +0200)
STC giveaway
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 291 W: 147 L: 64 D: 80
http://35.161.250.236:6543/tests/view/5ba630ff6e23db0fbab0ddc1

STC losers
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 661 W: 331 L: 232 D: 98
http://35.161.250.236:6543/tests/view/5ba631176e23db0fbab0ddc4

src/search.cpp

index cb09d15..7b4bf8b 100644 (file)
@@ -970,6 +970,7 @@ moves_loop: // When in check, search starts from here
                   continue;
           }
           else if (   !extension // (~20 Elo)
+                   && !pos.must_capture()
                    && !pos.see_ge(move, -Value(PawnValueEg * (depth / ONE_PLY))))
                   continue;
       }