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

Remind students that variable assignment occurs in the order assignments are given. This avoids the misconception that changing one value affects other variables assigned before it.
Have students design an anagram solver in Prolog or Java to introduce recursive backtracking.
Choose an appropriate IDE that fits course goals. For AP CS, use an IDE that doesn’t autofill to give students more practice writing code on their own

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

Privacy Policy