Simplify SEE for racing kings
authorFabian Fichter <ianfab@users.noreply.github.com>
Tue, 8 Dec 2020 16:42:19 +0000 (17:42 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Tue, 8 Dec 2020 16:42:19 +0000 (17:42 +0100)
racingkings STC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 582 W: 237 L: 153 D: 192
http://www.variantfishtest.org:6543/tests/view/5fce8bf26e23db221d9e9498

racingkings LTC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 582 W: 205 L: 127 D: 250
http://www.variantfishtest.org:6543/tests/view/5fce95a26e23db221d9e949b

src/position.cpp

index 5733cdd..9be8bcf 100644 (file)
@@ -1881,7 +1881,7 @@ bool Position::see_ge(Move m, Value threshold) const {
               && count<ALL_PIECES>(~sideToMove) == extinction_piece_count() + 1)))
       return extinction_value() < VALUE_ZERO;
 
-  if (must_capture() || count<CLOBBER_PIECE>() == count<ALL_PIECES>())
+  if (must_capture() || !checking_permitted() || count<CLOBBER_PIECE>() == count<ALL_PIECES>())
       return VALUE_ZERO >= threshold;
 
   int swap = PieceValue[MG][piece_on(to)] - threshold;