From d87dd7c1e174a9827809366ecc9d8ab46befc24e Mon Sep 17 00:00:00 2001 From: lrave Date: Tue, 6 May 2025 16:21:43 +0200 Subject: [PATCH] Created console class --- src/backend/Board.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/Board.java b/src/backend/Board.java index 2ab145a..a94eb47 100644 --- a/src/backend/Board.java +++ b/src/backend/Board.java @@ -8,8 +8,8 @@ public class Board { private int selectedY = -1; private int turnNumber = 0; // tracks current turn - private int width; // enables to define the dimensions of board - private int height; + public int width; // enables to define the dimensions of board (public because used in console) + public int height; private Piece[][] board; // 2D array chess board private ArrayList highlightedPositions = new ArrayList<>(); // list of valid positions to highlight