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

Misconception: students struggle with the onMousePress method (and other mouse interaction methods) in the Java objectdraw Library from Williams College; they need help understanding it’s called even when don’t explicitly call it.
Misconception: Students don’t understand that the right side of an assignment statement is executed before the assignment. They think that variables store unresolved equations.
Have students implement a simple GeoLocation class in Java that finds the distance between two locations using the Google Maps API to give students an interesting introduction to object-oriented programming.

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

Privacy Policy