Skip to main content

Tetris

·75 words·1 min
Tetris

For my final project in a computer science class, I recreated the classic game of Tetris in Java!

It implements all the basic features of Tetris as documented by TetrisWikiexternal link :

  • 7 pieces
  • the random generator
  • the hold piece
  • rotations
  • scoring

Game states (main menu, paused, playing, game over) are managed by a mini state machine, which allows for input keys to be directed to their appropriate menus and events to be properly triggered.