From: Fabian Fichter Date: Sun, 18 Nov 2018 21:21:37 +0000 (+0100) Subject: Simplify away redundant condition X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=0ecc264b34d25af0687ff4db8f41d7e5fe646bd5;p=fairystockfish.git Simplify away redundant condition No functional change. --- diff --git a/src/position.cpp b/src/position.cpp index 6fa8f9f..bed440e 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -771,10 +771,6 @@ bool Position::legal(Move m) const { if (immobility_illegal() && (type_of(m) == DROP || type_of(m) == NORMAL) && !(moves_bb(us, type_of(moved_piece(m)), to, 0) & board_bb())) return false; - // Game end - if (is_variant_end()) - return false; - // En passant captures are a tricky special case. Because they are rather // uncommon, we do it simply by testing whether the king is attacked after // the move is made.