Tetris is quite tricky to start with, Pong would be a better start.
---
*I would make tetris by making a 2D array, filled with 0's.
A random paturn of 4 blocks apears at the top of it, assigned 1's.
*Each loop the blocks with 1 assigned to them move down..unless there is a 2 under them or they reach the ground.
If this happens they become 2 as well.
*If the user hits left or right all the 1's in the array move left or right one.
If the user rotates, there is a mirror/flipping subrouting applied to the falling paturn of 1's. (you cant actualy rotate discrite data).
*If there is a row of 2's found, then they vanish, and *all* the rows above becomes 1's.(and they then fall down...see above)
The array would of course, be drawen to the screen once per cycle.
=====
This is how i would make Tetris..not sure if its the best way.
For one thing, the movement is jerky, smooth falling would be nicer.
"The man who says it cannot be done is generally interrupted by someone doing it." ~ Elbert Hubbard