Skip to main content
CS Teaching Tips

Main navigation

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

Have students design a game of Asteroid in Java to introduce developing an object and class hierarchy.

Share Have students design a game of Asteroid in Java to introduce developing an object and class hierarchy. with FacebookShare Have students design a game of Asteroid in Java to introduce developing an object and class hierarchy. with Twitter
  • The repetitive design elements in this project provide a great mechanism for discussing class creation and inheritance.
  • Additionally, students enjoy this assignment because they produce a fun, interactive game that actually looks like the classic arcade one.
  • For the full assignment, visit Stanford’s nifty assignment page.

More about this tip

Tags

  • Java
  • CS 1
  • Intro Programming
  • CS 2
  • Programming Concepts
External Source
Stanford’s Nifty Assignments by Dan Leyzberg and Art Simon
Other Tips By
Other Tips By Art Simon
Art Simon

Similar tips

Help students build intuition about recursion in Python by comparing each recursive call to a function call, which may be more intuitive for students in introductory classes.
Use Clock as an example of an abstract class because ALL clocks have the same mechanism for keeping time, a necessary property for an Abstract Class, to provide students with a strong real-world mental model for abstract classes.
Misconception: The update in the index in a for loop (i.e., the third part of the for loop control statement) happens after the all the steps inside of the loop have happened.

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

Privacy Policy