Skip to main content
CS Teaching Tips

Main navigation

  • Browse All Tips
  • Tags
  • 3D
  • About
  • Rate Tips
  • Tip Sheets

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

Share Have students create a game of Tetris in Java to work on object-oriented programming and decomposing complex programs. with FacebookShare Have students create a game of Tetris in Java to work on object-oriented programming and decomposing complex programs. with Twitter
  • 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

Tags

  • Java
  • CS 1
  • Intro Programming
  • Development Methods
External Source

Stanford Tetris Project by Nick Parlante.

Other Tips By
Other Tips By Nick Parlante

Similar tips

Before class, create a glossary of coding symbols on the board to help students verbalize their code during class discussions and oral exercises.
Emphasize to your students that in languages like Java a semicolon ends a complete thought, rather than just a line of code.
Demonstrate swapping variables' values by swapping the contents of two cups full of liquid; you need a third cup to swap the liquids just like you need a third, temporary, variable to swap the values.

For more information or to report a bug, contact us at admin@csteachingtips.org. Built with Bootstrap. Powered by Drupal.

Privacy Policy