You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Added en passant step to move validation to prevent en passant moves
that leave the king in check.
* For an example of such a position see:
`1nbqkbnr/1pp1pppp/8/r1Pp3K/p7/5P2/PP1PP1PP/RNBQ1BNR w k d6 0 8`
fixes#18
In the following position, ChessKit allows white to capture black's pawn en passant even though that would put the white king in check.
The FEN for an example of this issue is:
1nbqkbnr/1pp1pppp/8/r1Pp3K/p7/5P2/PP1PP1PP/RNBQ1BNR w k d6 0 8
The text was updated successfully, but these errors were encountered: