Question: This class represents a two - dimensional tetris piece dropping into the tetris well. Figure 1 depicts some examples of pieces. The block is practically
This class represents a twodimensional tetris piece dropping into the tetris well. Figure depicts some examples of pieces. The block is practically a squaresize placeholder for the Tile objects. But not all the spots are necessarily occupied. When the block is generated, we randomly pick the spots that will be filled in with tiles. All the tiles of a block must have the same color. Lastly, the block is dynamic which means that while its dropping into the well it can transform in the following ways:
It can move left or right one spot at a time
It can flip vertically or horizontally
It can rotate clockwise degrees at a time
It can scale up double in size or scale down shrink in half, but cant become smaller than x
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
