Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

2d Array Tetris Row Collapsing Problem

807601Feb 10 2008 — edited Feb 10 2008
Hey guys for class I am building a Tetris game and while I have everything else down im getting stuck on the "row collapsing." I am using a 2 d array to represent the board and switching individual cells on and off to emulate pieces. Ive tried nested for loops with various algorithms but I just cannot figure out how to get this working. Even if i delete a full row, the part of the row above might make another full row and i cant figure out how to detect that. Am i even going in the right direction? just a hint would be nice or a link to a good array manipulation guide thanks :)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 9 2008
Added on Feb 10 2008
4 comments
554 views