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.

Share Compare variables to gym scoreboards to help students understand them and how they can be used in a game. with FacebookShare Compare variables to gym scoreboards to help students understand them and how they can be used in a game. with Twitter
  • 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

If you refer to sample people to explain concepts (such as Eve the Eavesdropper), select names and personas that are diverse in gender, race, and nationality or are gender-, race-, and nationality-neutral
Tell students that they have to fix their indentation before you’ll help them debug to encourage well-organized code.
Compare exclusive OR gates to a light controlled by switches at the bottom and top of a staircase to explain how XOR logic works in a familiar situation.
  • 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