Skip to main content
CS Teaching Tips

Main navigation

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

Compare variables to gym scoreboards to help students understand them and how they can be used in a game.

  • Just like with scoreboards, variables are a spot that can hold a value.
    • For example, with points, the value that the variable holds goes up.
    • In contrast, with lives, the value the variable holds goes down.

More about this tip

Tags

  • Meaningful and Relevant Content
  • Programming Concepts
External Source

Interview with Dylan Ryder

Other Tips By
Other Tips By Dylan Ryder

Similar tips

Teach ArrayLists for the AP CS A exam by having students uncover interesting information from your past students’ grades.
Explain the “discards qualifiers” error in C++ using the metaphor of a contractor who has signed a contract not to change instance variables, but then attempts to use subcontractor who hasn’t agreed to the same terms or signed the appropriate forms.
Teach these four Scanner methods that allow students to write interesting code at the beginning of an introductory Java course to give students a feel for programming without overwhelming them.

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

Privacy Policy