A simple Java-only Tetris game using Swing.
- Install a Java JDK (Java 11 or newer recommended).
- Open a terminal in this repository folder.
- Compile the game:
javac Tetris.java- Run the game:
java Tetris- Left arrow: move left
- Right arrow: move right
- Down arrow: soft drop
- Up arrow: rotate
- Space: hard drop
- P: pause
- This is a standalone Java desktop application; no web deployment is required.
- If the game ends, close the window and rerun
java Tetristo play again.