Skip to content

A simple Tetris clone coded in Java using the StdDraw library.

Notifications You must be signed in to change notification settings

aizenbaidya/tetris

Repository files navigation

Tetris-Clone

A simple Tetris clone coded in Java using the StdDraw library.

(The video is sped up by 8x.)

Some features to implement in the future

  • Add a score.
  • Count the number of lines cleared.
  • Be able to hold blocks.
  • Be able to see the next block.

How to run the project

Download the project into a folder and run "javac *.java" in the terminal to compile it and "java Main" to run it.

Credits

The StdDraw library is linked here. The algorithm used to rotate the pieces is linked here.

Controls

Press A, S, or D to move the block left, down, or right. Press R to rotate the piece. Press the space bar to play again once the game is over.

About

A simple Tetris clone coded in Java using the StdDraw library.

Topics

Resources

Stars

Watchers

Forks

Languages