Repository navigation
Version 1.1.0
Resolved an issue where the White pawn would not show the en passant move when black and white pawns are in adjacent squares and not moving to the diagonal en passant square after the capture, despite the Black pawn being correctly removed. The bug stemmed from the ChessBoard.movePiece method rejecting the move due to an invalid Pawn.isValidMove check. This was fixed by adding a boolean isEnPassantMove parameter to movePiece, allowing en passant moves to bypass the isValidMove check since validation is already handled by ChessGame.isEnPassantMove. The en passant functionality now works as expected, with proper pawn movement and capture.