I have a 4X4 bool "box" array inside a larger "jar" array and want to write a drop loop so if the user presses a certain key, it will drop the piece (this is for a tetris game) until it hits something else in the jar. I am not sure how to come up with the for loop to detect the lowest block in the box array and then drop it until it hits something (if there is a block, the jar is true).
http://img412.imageshack.us/img412/964/droprt5.png
Can anyone suggest a solution for this?
Thank you.