Rotation in the edge

I want to ask, in case I rotate a piece in the edge, let’s say L, it’s impossible to add it to the board so I’m experiences some weird behavior of the program, should I change the code to shift the rotated pieces inside the board if the new body doesn’t feet in the board after the rotation?

Hi there!

We do specify in the project description that a piece can only be rotated if the target position is unoccupied. This includes part of the piece being out of bounds. Therefore, in your case, rotating the piece would simply not be possible, so it shouldn’t be rotated.

1 Like