Skip to main content
CS Teaching Tips

Main navigation

  • Browse All Tips
  • Tags
  • About
  • Cards
  • 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
Like(1881 Likes)
  • 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

Misconception: Students think that when they create a new variable within a function, that function will automatically return that variable’s value when executed.
Use dice to introduce instantiable classes in Java because it’s easier for novice students to create classes based on a familiar object.
Misconception: With conditionals, students may try to compare the memory address of a function to a number, like x < foo, when they intended to compare x with the return value of foo.
  • CSTT Facebook
  • CSTT Twitter

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

Privacy Policy

  • National Science Foundation
  • Sage Fox Group
  • Harvey Mudd College