CanAddPiece, column

I don’t really understand what the arguments row and column refer to in the method canAddpiece. Since a piece can cover more than one row/column in the board, does it mean that the row here refers to the index of the board that points to rowrotationpoint or is it an index to the top/bottom of the piece?

I guess what you mean by saying

row here refers to the index of the board that points to rowrotationpoint

is correct.

For further details have a look at the project presentation slides, slide 16 (page 25 of the pdf) specifies what these coordinates refer to.

2 Likes

I’d just like to add that we pretty much always refer to the position of the rotation point when we refer to the position of the piece. And when I say pretty much always, I mean that I don’t recall an instance where that’s not what we mean, but I’m loath to entirely rule it out.

2 Likes