ucsb-cs56-projects / cs56-games-tetris

-
1 stars 7 forks source link

Fix size of 2D array created for each tetris block 200pts #69

Open matthewmitx opened 6 years ago

matthewmitx commented 6 years ago

Each of the different tetris blocks is represented in a 4x4 2D array of 1's and 0's. This is bigger than needed for most of the blocks in the tetris game, causing block placements issues. Rewrite the Type.java constructors to use a minimum array size specific to each block and modify the block placement methods to work with these new array sizes.

KevinLee00 commented 6 years ago

F17 Approved. 200 pts.

matthewmitx commented 6 years ago

An abstract method should also be added to the Block.java class that tests to see if blocks are able to rotate, before actually rotating them [canRotate( )]. Together, solving these two problems should help fix the block placement issues.

john-lau commented 6 years ago

W18 OK 200 pts