Activity 01
Simulation Game: The Variable Boxes
Place several empty boxes at the front of the room, each labeled with a name like 'Score' or 'Lives'. Students act as the 'program' and follow instructions to put different numbers of counters into the boxes or swap them, demonstrating how the value changes but the name stays the same.
Justify why we must set a variable to a starting value at the beginning of a game.
Facilitation TipDuring The Variable Boxes, circulate to ensure each student places only one item in each box and replaces it intentionally to model overwriting.
What to look forPresent students with a short, simple program snippet that uses a variable (e.g., a score counter). Ask them to identify the variable name, its initial value, and predict the value after a specific action occurs. For example: 'What is the value of 'score' after the player collects 3 coins?'
ApplyAnalyzeEvaluateCreateSocial AwarenessDecision-Making
Generate Complete Lesson→· · ·
Activity 02
Think-Pair-Share: Naming Conventions
Show students a list of 'bad' variable names (e.g., 'x', 'thing', 'stuff') and 'good' names (e.g., 'player_score', 'timer_seconds'). Pairs must discuss why the good names make the code easier to read and then rename a set of mystery variables based on their function.
Explain how one variable can be used to control multiple different sprites.
Facilitation TipIn Naming Conventions, pause pairs after two minutes of discussion to call on one group to share their top naming rule with the class.
What to look forPose the question: 'Imagine you are designing a game where a character needs to jump. What variable could you use to control the height of the jump? Why is it important to give this variable a starting value?' Listen for student explanations of variables as placeholders and the need for initialisation.
UnderstandApplyAnalyzeSelf-AwarenessRelationship Skills
Generate Complete Lesson→· · ·
Activity 03
Inquiry Circle: Game Audit
Groups look at screenshots of popular games (like Minecraft or Roblox) and identify every piece of information on the screen that would need to be stored in a variable. They present their list, explaining why each variable needs a starting value.
Critique the impact of a confusing or inaccurate variable name on a program.
Facilitation TipFor Game Audit, provide printed game screenshots with clear variables already labeled so students focus on identifying purpose rather than creating labels.
What to look forGive each student a slip of paper. Ask them to write down one example of a variable they might use in a game and explain in one sentence why they chose that particular name for it. Collect and review for understanding of variable purpose and naming conventions.
AnalyzeEvaluateCreateSelf-ManagementSelf-Awareness
Generate Complete Lesson→A few notes on teaching this unit
Teach variables by starting with physical models before moving to code, as research shows concrete examples reduce misconceptions. Avoid abstract explanations like 'memory location' with younger students, and always pair naming with purpose to prevent the belief that variable names control behavior. Use consistent language such as 'holds' or 'stores' to reinforce the container analogy.
Successful learning looks like students confidently defining variables with clear names and initial values, explaining why a variable can only hold one value at a time, and justifying their naming choices during discussions. They should also apply variables in simple programs without confusion.
Watch Out for These Misconceptions
During The Variable Boxes, watch for students trying to put multiple items into a single box at the same time.
Give each pair two boxes and instruct them to place one item in each box, then replace items one at a time to demonstrate that only one value fits at once. Ask: 'What happened to the first item when you put in the second one?'
During Naming Conventions, listen for students assuming that a variable name like 'speed' automatically makes the character move fast.
Show a program where 'speed' is set to 0 at the start, then ask students to predict what happens if the value changes to 5. Point out that the name does not control the action; the value and logic do.
Methods used in this brief