From f75359ffb6b486ca09955c6d979fbffeecb386f1 Mon Sep 17 00:00:00 2001 From: HP Date: Sun, 11 May 2025 13:23:40 +0200 Subject: [PATCH] autoplayer with the public method in board --- src/backend/Board.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/backend/Board.java b/src/backend/Board.java index 89bbbff..a55b731 100644 --- a/src/backend/Board.java +++ b/src/backend/Board.java @@ -15,8 +15,6 @@ public class Board { private ArrayList moveHistory = new ArrayList<>(); - - /*public Board(int colNum, int lineNum) { this.width = colNum; this.height = lineNum; @@ -411,7 +409,7 @@ private boolean isEnemy(int x, int y, boolean isWhite) { } -private ArrayList computeLegalMoves(Piece piece) { +public ArrayList computeLegalMoves(Piece piece) { ArrayList moves = new ArrayList<>(); int x = piece.getX(); int y = piece.getY();