added a comment to enpassant and thats it

This commit is contained in:
keshi 2025-05-16 14:50:26 +02:00
parent 4fadb597ab
commit 60569b6023
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ public class Board {
// Update its internal coordinates
piece.setX(newX);
piece.setY(newY);
lastMove= new Move(oldX, oldY, newX, newY, piece);
lastMove= new Move(oldX, oldY, newX, newY, piece);//tracks the last move made
System.out.println(" Move saved: " + oldX + "," + oldY + " to " + newX + "," + newY);
piece.setDidMove(true);// setting that the piece has been moved