Variables & Scorekeeper Studio

A variable is a named container that stores a value you can change. Create score jars, build a program with Add and Subtract blocks, and run it to see each step in action.

A program is ready for you. Press Run Step to run one block at a time and watch the jar values change. See how each instruction updates the scorekeeper.

Score Jars (Variables)

🫙Player 1starts at 0
0
🫙Player 2starts at 0
0

Program

  1. 1Add 10 to Player 1
  2. 2Add 5 to Player 2
  3. 3Add 10 to Player 1
  4. 4Subtract 3 from Player 2
  5. 5Add 10 to Player 1

What is a variable?

A variable is a named container that holds a value. You can change what is inside it any time. In this tool, each score jar is a variable. When you run Add, Subtract, Set, or Reset blocks, you are writing instructions that change what is stored in each jar.