Simplify antichess move picking
authorFabian Fichter <ianfab@users.noreply.github.com>
Tue, 9 Feb 2021 20:13:52 +0000 (21:13 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Tue, 9 Feb 2021 20:13:52 +0000 (21:13 +0100)
No functional change.

src/movepick.cpp

index dc93e1b..c42a813 100644 (file)
@@ -173,7 +173,7 @@ top:
 
   case GOOD_CAPTURE:
       if (select<Best>([&](){
-                       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);