Thread: Tetris
View Single Post
Old 29-Mar-2007, 03:12 AM   #1 (permalink)
Iphone
Fixed Error!
 
Iphone's Avatar

Posts: 4,202
Join Date: Mar 2007
Rep Power: 6 Iphone is on a distinguished road

IM:
Default Tetris

Question: I am planning to write a Tetris game, but have a couple questions.

1) What are the dimensions of the board?

2)How do I know the starting position and shape of each block? By starting position, I do not mean position
on the board, but the position in its own 4*4 realm. Each block can be 4*4, no more, so I have decided to store
each block in its own array, until being placed. So, if I have the following empty space:

----
----
----
----

How would
***
*

fit?

***-
-*--
----
----

OR

----
***-
-*--
----

And other possibilities exist as well. Does it matter? Is there a standard starting position? Is it different for each object?

Also, how can I find the starting shapes for each object? Do they start as:

***
*
OR
*
**
*

How can I find these bits of information out?

Please do not respond with full-code examples, this is not what I am looking for.
Iphone is offline   Reply With Quote