Greg Strong wrote on Mon, Nov 11, 2019 06:57 PM UTC:
Yes, I should have said en passant only allowed if the two-space pawn move was on the player's most recent move (rather than second move) to account for this. I just tested this situation and ChessV does allow en passant to get the king out of check. It is implemented as H. G. suggests - any move clears the EP square.
Yes, I should have said en passant only allowed if the two-space pawn move was on the player's most recent move (rather than second move) to account for this. I just tested this situation and ChessV does allow en passant to get the king out of check. It is implemented as H. G. suggests - any move clears the EP square.