PuzzleBoard will be called by Program28.java and should work like the following example:
Hints:
board[3][3] = null;Then, to check if a piece is null (to avoid printing it or to find the next move):
if ( board[i][j] == null )
Another way to indicate the empty square is by setting it's label to a flag, like 0, and adding a getLabel() method to puzzlePiece. You can then check for the "empty" space by:
if ( board[i][j].getLabel() == 0 )
$ make run