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

Misconception: If you consistently use the same variable names during class in lectures and examples, students may incorrectly assume objects in Java can only have those names.
Use CodingBat problems to supplement Java and Python curricula to give students more practice.
Use Python’s map function to introduce students to loops early on, because the map function is an provides an easy transition to loops.
  • 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