Tetris game, rotating near a wall
Hello , so I'm writing a Tetris game with my friend using C++, and we managed to complete the foundation, but now we're fixing the small bugs. We created a class called "Shape", which creates all the other shapes, but we're having trouble with the rotation near the walls. How can we check if a shape can rotate near a wall in the most efficient way? I mean for example, the line shape and the T shape have different rotations, so how can we somehow check for both of them in a single function? Thanks!