Have students create a game of Tetris in Java to work on object-oriented programming and decomposing complex programs.

  • Students create and test Piece and Board classes separately to build the Tetris game.
    • To make this project more challenging, students can also create a Brain class, which allows the computer to use AI to play the game itself or sabotage the player by choosing inconvenient Tetris pieces.
  • For helpful files and more instructions, check out the Stanford Tetris Project.

More about this tip

External Source

Stanford Tetris Project by Nick Parlante.