From fcdba2721cd32799f5fcfc37a35cf9c3aba4a5e9 Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Tue, 8 Dec 2020 17:42:19 +0100 Subject: [PATCH] Simplify SEE for racing kings 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 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/position.cpp b/src/position.cpp index 5733cdd..9be8bcf 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -1881,7 +1881,7 @@ bool Position::see_ge(Move m, Value threshold) const { && count(~sideToMove) == extinction_piece_count() + 1))) return extinction_value() < VALUE_ZERO; - if (must_capture() || count() == count()) + if (must_capture() || !checking_permitted() || count() == count()) return VALUE_ZERO >= threshold; int swap = PieceValue[MG][piece_on(to)] - threshold; -- 1.7.0.4