From 0a036c783942250c46436098bb7cf8f1a8e38201 Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Tue, 9 Feb 2021 21:13:52 +0100 Subject: [PATCH] Simplify antichess move picking No functional change. --- src/movepick.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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); -- 1.7.0.4