The 2D array (named blackwhite[][]) used to construct the figures.
This work has fulfilled the following features
- The figures can be moved left/right/down and rotated
- The figures can be pulled down to the lowest point with caps lock button press
- All horizontal lines filled with blocks are removed, giving points to the user
- Once the score is high enough, rise the level and speed up falling rate.
- Restart a game if user lose.
- Show next figure on the right info panel.
# git clone https://github.com/a110605/tetris-game
Import the project into eclipse, and run control.java
This work refers to the code in this artice, I redraw GUI panel and fix some bugs.