diff --git a/src/backend/Board.java b/src/backend/Board.java index bcf4b01..98fb398 100644 --- a/src/backend/Board.java +++ b/src/backend/Board.java @@ -9,7 +9,7 @@ public class Board { private Piece chosenPiece=null; private int turnNumber=0; private boolean isTurnWhite=true; -// private ArrayList highlightedSquares= new ArrayList<>(); + private ArrayList highlightedSquares= new ArrayList<>(); //stores highlighted board positions public Board(int colNum, int lineNum) { this.width=colNum; @@ -168,8 +168,13 @@ public class Board { /* The following methods require more work ! */ public boolean isHighlighted(int x, int y) { - //return highlightedSquares.contains(Point(x,y)); - return true; } + for(int i=0; i getPossibleMoves(Piece piece, Board board){ + ArrayList validMoves = new ArrayList(); + MovePiece movement = new MovePiece(piece, board); + PieceType type= piece.getType(); + for(int x=0; x