This project is a simple Tetris game implemented in Java
using Swing
for the graphical user interface. The game interface written fully with Java Graphics API
. The game includes features such as piece movement, row clearing, score tracking etc..
- Piece Movement: Move pieces left, right, and down using keyboard controls.
- Row Clearing: Automatically clears full rows and shifts the above rows down.
- Score Tracking: Keeps track of the player's score.
- Java Development Kit (JDK) 8 or higher
- Maven
Clone the repository:
git clone https://github.com/ISO53/Tetris.git
Go to the project directory:
cd Tetris
Build the project using Maven:
mvn clean package
Run the application:
java -jar target/tetris-game-1.0-SNAPSHOT.jar
A
: Move piece leftD
: Move piece rightS
: Move piece down
The game starts with a random piece falling from the top. Use the controls to move the piece and fit it into the rows. When a row is completely filled, it will be cleared, and the rows above will shift down.
Contributions are welcome! Please fork the repository and create a pull request with your changes.
This project is licensed under the GNU General Public License v3.0. Feel free to modify the content and structure based on your preferences and project specifics.
Inspired by the classic Tetris game.
Caution
Don't look at this commit.