From: Fabian Fichter Date: Tue, 9 Feb 2021 20:13:52 +0000 (+0100) Subject: Simplify antichess move picking X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=0a036c783942250c46436098bb7cf8f1a8e38201;p=fairystockfish.git Simplify antichess move picking No functional change. --- diff --git a/src/movepick.cpp b/src/movepick.cpp index dc93e1b..c42a813 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -173,7 +173,7 @@ top: case GOOD_CAPTURE: if (select([&](){ - return pos.see_ge(*cur, Value(-69 * cur->value / 1024 - 500 * (pos.captures_to_hand() && pos.gives_check(*cur)))) || pos.must_capture() ? + return pos.see_ge(*cur, Value(-69 * cur->value / 1024 - 500 * (pos.captures_to_hand() && pos.gives_check(*cur))))? // Move losing capture to endBadCaptures to be tried later true : (*endBadCaptures++ = *cur, false); })) return *(cur - 1);