Skip to content

Study Hub

Study Guides

This pupil-friendly study guide includes a unit summary, clear notes, common mistakes, and quick questions with answers.

Year 6 - Computing

Improving a game

Using variables in programming to develop a game

Unit Summary

This unit explores the concept of variables in programming through the development of games. Pupils will investigate what variables are and relate them to real-world examples of values that can be set and changed. Then they use variables to create a simulation of a scoreboard.

Lesson Summary

You will learn to choose how to improve a game by using variables.

Key Notes

  • Variables can be updated at specific points in a program.
  • An event in a program can be used to set a variable.
  • A program can use the value of a variable.

Vocabulary To Learn

  • score: a named value which will track player points
  • selection: part of a program where, if a condition is met, then a set of commands is run
  • operator: a symbol used to compare values

Common Mistakes To Avoid

  • I put the "change score by" block in my code, but the score isn't changing when I expect it to.

3 Quick Questions (With Answers)

1. Describe the system or process from this lesson in clear steps.

Variables can be updated at specific points in a program. An event in a program can be used to set a variable.

2. Define this computing term and give one practical example. 'score'

a named value which will track player points. Add one real device or system example to prove understanding.

3. Correct this common computing misconception.

Mistake: I put the "change score by" block in my code, but the score isn't changing when I expect it to. Correction: The location of your "change score by" block dramatically affects when and how often the score changes.

More Lessons In This Unit

Browse all guides in the Year 6 Computing guide library.