Created console class

This commit is contained in:
lrave 2025-05-06 16:21:43 +02:00
parent 5138f12048
commit d87dd7c1e1
1 changed files with 2 additions and 2 deletions

View File

@ -8,8 +8,8 @@ public class Board {
private int selectedY = -1; private int selectedY = -1;
private int turnNumber = 0; // tracks current turn private int turnNumber = 0; // tracks current turn
private int width; // enables to define the dimensions of board public int width; // enables to define the dimensions of board (public because used in console)
private int height; public int height;
private Piece[][] board; // 2D array chess board private Piece[][] board; // 2D array chess board
private ArrayList<int[]> highlightedPositions = new ArrayList<>(); // list of valid positions to highlight private ArrayList<int[]> highlightedPositions = new ArrayList<>(); // list of valid positions to highlight