diff --git a/src/backend/Board.java b/src/backend/Board.java index 06bd0ae..4c55884 100644 --- a/src/backend/Board.java +++ b/src/backend/Board.java @@ -10,7 +10,7 @@ public class Board { private int turnNumber=0; // Tracks the number of turns elapsed private boolean turnWhite=true; // True if it's White's turn, False if it's Black's turn private ArrayList highlightedPositions = new ArrayList<>(); // List containing all board positions - private ArrayList moveHistory = new ArrayList<>(); // Stack to store move history + private ArrayList moveHistory = new ArrayList<>(); // List to store move history private boolean inBounds(int x, int y) { // Verify the bounds of the board diff --git a/src/backend/MoveRecord.java b/src/backend/MoveRecord.java index f3d706a..ee6f192 100644 --- a/src/backend/MoveRecord.java +++ b/src/backend/MoveRecord.java @@ -1,6 +1,7 @@ package backend; public class MoveRecord { + // records the piece last move Piece movedPiece; Piece capturedPiece; int fromX, fromY, toX, toY;