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.)
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.)