calbri / TetrisAVR

CSSE2010 Assignment - Good copy
1 stars 0 forks source link

Random block position and rotation #9

Closed calbri closed 8 years ago

calbri commented 8 years ago

The provided program always initially places blocks at the right hand side of the board (at the top row). Modify the program so that it places the block in a random column (still at the top of the board) with a random rotation. You will need to add appropriate code to the function generate_random_block() in the file blocks.c. (The block must, of course, not extend beyond the edges of the board but it must be apparent that sometimes blocks appear at the left hand side of the board with any rotation.)

P0ntiff commented 8 years ago

Only spawns blocks on far left and far right --> not a random column yet.