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.

  • 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

Emphasize that Scratch is REAL coding; this lets students know that programming in educational languages like Scratch or Python is valuable even though these languages aren’t commonly used in industry.
Be on the lookout for loop syntax that belongs to another language when students are learning multiple languages because they sometimes confuse syntax and create hard to spot bugs.
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.

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

Privacy Policy