Board Boarder and canAddPiece()


I’m not sure, whether the black boarders of the board, shown by GUI, are considered as a part of the board.

i.e., are the first and last row (column) of the board devoted for the boarder, so I cannot add a part of new piece on it?

Hi there!

They are not included in the width and height of the board, no. The rows and columns that you are given for the size of the board are just the size of the actual, usable board itself.

1 Like