From b7c1e9b497e8d3c851486bd0075c181d800cf1dc Mon Sep 17 00:00:00 2001 From: lrave Date: Tue, 6 May 2025 14:08:08 +0200 Subject: [PATCH] comment board --- src/backend/Board.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/Board.java b/src/backend/Board.java index a175569..eedfbb4 100644 --- a/src/backend/Board.java +++ b/src/backend/Board.java @@ -7,8 +7,8 @@ public class Board { private int selectedX = -1; // negative value means impossible x and y so unselected private int selectedY = -1; - private int turnNumber = 0; // track current turn - private int width; + private int turnNumber = 0; // tracks current turn + private int width; // enables to define the dimensions of board private int height; private Piece[][] board; // 2D array chess board private ArrayList highlightedPositions = new ArrayList<>(); // list of valid positions to highlight @@ -16,7 +16,7 @@ public class Board { public Board(int colNum, int lineNum) { this.width = colNum; this.height = lineNum; - this.board = new Piece[width][height]; // first empty board + this.board = new Piece[width][height]; // first empty board *********REVIEW************ clearConsole(); System.out.println(toString()); // print the chess at the beginning of the game }