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 Breakout in Java to practice using conditionals and nested for loops.

Share Have students design a game of Breakout in Java to practice using conditionals and nested for loops. with FacebookShare Have students design a game of Breakout in Java to practice using conditionals and nested for loops. with Twitter
  • Breakout, a classic brick-breaking arcade game, is a good fit for one of the first assignments in an intro course because it only relies on basic coding skills.
    • While this assignment only requires basic skills, it is still engaging because students are creating an interactive game.
  • For the full assignment, visit Stanford’s nifty assignment page.

More about this tip

Tags

  • CS 1
  • Java
  • Intro Programming
  • Programming Concepts
External Source
Stanford’s Nifty Assignment by Eric Roberts
Other Tips By
Other Tips By Eric Roberts

Similar tips

Misconception: students develop the habit of putting the type in front of variables; they don’t realize that this creates a new variable resulting in lots of variables with the same name.
Misconception: students forget about language-specific or paradigm-specific material (e.g., new/delete or types) when they switch between languages that don’t use the same concepts.
Use the Code.org unplugged lesson “Conditionals with Cards” to help students build an intuitive sense for how conditionals and nested conditionals work.
  • 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