Functions - wlsdn2316/1-tetris- GitHub Wiki
Print Title
initialize game.
map(main) reset (main_org[][] initialize)
map(copy) reset (main_org[][] initialize)
Print UI
Print Map
Create a new block.
Input key and process accordingly.
Drop block process.
There are two ways to check for collisions.
1. Crashes the specified coordinates
2. Crashes while rotating
If a line is full, remove a line and increase score.
If gain goal score , level up.
Determine if the game is over.
Game pause
Hide the cursor.