Closed dlbbld closed 2 years ago
The getEnPassantTarget on the Board and MoveBackup class does not work as expected, as well isEnPassantMove on class MoveBackup.
getEnPassantTarget
Board
MoveBackup
isEnPassantMove
final Board board = new Board(); board.doMove("e4"); board.doMove("Nf6"); board.doMove("e5"); board.doMove("d5"); assertEquals(Square.D6, board.getEnPassantTarget()); // fails, is D5 assertEquals(Square.D6, board.getBackup().getLast().getEnPassantTarget()); // fails, is NONE board.doMove("exd6"); assertTrue(board.getBackup().getLast().isEnPassantMove()); // fails, is false
The
getEnPassantTarget
on theBoard
andMoveBackup
class does not work as expected, as wellisEnPassantMove
on classMoveBackup
.