GRADE 5 · COMPUTING · UNIT 1 · LESSON 1.3
Computational thinking and programming
Build a shared game counter
Our original Scratch game has three clickable button sprites: A, B and Reset. A adds 2 points; B adds 3 points. Every A or B click adds 1 to Clicks.
LET’S LOOK, THINK AND TRY
Build a shared game counter
Our original Scratch game has three clickable button sprites: A, B and Reset. A adds 2 points; B adds 3 points. Every A or B click adds 1 to Clicks.
- Build a shared game counter.
- Trace SET, CHANGE and SAY instructions in order.

Explore the clues
Tap one card to find out more.
Understand the idea
Our original Scratch game has three clickable button sprites: A, B and Reset. A adds 2 points; B adds 3 points. Every A or B click adds 1 to Clicks. Reset sets both values to 0. Create Score and Clicks using Variables, Make a Variable, For all sprites.
Read the complete shared-state project
Read the complete game model
Original game model - all sprites share Score and Clicks.
Score: 0
Clicks: 0
A: add 2
B: add 3
RESET
This diagram shows the values immediately after Reset. The button labels show
the scoring rule. A or B also increases Clicks by 1; Reset does not count as a scoring
click.
Assemble the three sprite scripts
Sprite Awhen this sprite clickedchange Score by 2change Clicks by 1
Sprite Bwhen this sprite clickedchange Score by 3change Clicks by 1
Sprite Resetwhen this sprite clickedset Score to 0set Clicks to 0
Use these original block-style guides in Scratch. Each script belongs to the named
sprite. Click Reset before tracing. No other scripts run.
Explain with evidence
Now make B worth 4 points instead of 3. A still adds 2. Every scoring click must still add 1 to Clicks.

Think safely with Paxa!
Use the supplied examples and a paper simulation first. Ask a grown-up before using a device or creating an online account. Never share passwords or private information.
Use the supplied code, labels and records to explain your answer.
Our Unit 1 learning path
- Lesson 1.1: Meet variables and values
- Lesson 1.2: Trace variables and a robot route
- Lesson 1.3: Build a shared game counter
- Lesson 1.4: Debug and test variable programs
- Lesson 1.5: Calculate with stored numbers
- Lesson 1.6: Trace inputs and comparisons
- Lesson 1.7: Build and test a calculator
- Lesson 1.8: Debug calculator operations
- Lesson 1.9: Choose a path with selection
- Lesson 1.10: Trace branches on paper
- Lesson 1.11: Control a sprite with key conditions
- Lesson 1.12: Check branches and repair control bugs
- Lesson 1.13: Break a problem into clear parts
- Lesson 1.14: Compare and trace algorithms
- Lesson 1.15: Build a program from an outline
- Lesson 1.16: Test and improve a solution plan
- Lesson 1.17: Objects, behaviours and messages
- Lesson 1.18: Trace contacts and message effects
- Lesson 1.19: Build a two-sprite signal challenge
- Lesson 1.20: Debug interactions between objects
- Lesson 1.21: Meet the program-making team
- Lesson 1.22: Plan a useful program with clear criteria
- Lesson 1.23: Build and test a friendly four-question quiz
- Lesson 1.24: Evaluate, refine and retest a program
- Lesson 1.25: Inputs, conditions and LED outputs
- Lesson 1.26: Trace physical-device decisions on paper
- Lesson 1.27: Build the two-player Signal Match game
- Lesson 1.28: Find faults and test device programs
- Lesson 1.29: Paxa Mystery Number
For grown-ups: using this lesson
Explore the computing idea together, then try the workbook. Your answers are checked in your browser. Open responses need grown-up review and are shown separately from the automatic score. Check your work, then use “Retry answers to practise” to revisit mistakes while keeping correct responses.
Choose “Mark lesson finished” when ready. Optional account progress saves position and completion; save personal workbook responses before leaving. Use fictional data; do not share names, passwords or other private information.
2. Fill in your workbook
Read each page’s explanation and use its own diagrams, labels and supplied records. Choose, write or draw. Use Answer list for larger controls.
Opening your PDF…
Swipe sideways across the worksheet on a small screen, or use “Answer list” for larger controls.
You’ve completed the checked activities.
TAKE YOUR PRACTICE OFFLINE
3. Download the student worksheet
All 6 original A4 student pages, ready for pencil-and-paper practice. Choose Review Answers to check your work on this webpage.
Student worksheet only · PDF · 8.6 MiB · No answer key included
TRY FIRST, THEN CHECK TOGETHER
Download the student worksheet →4. Answers & guidance
Finished your try? Open the guide and compare one worksheet at a time. Your own words may be different and still explain the right idea.
Shown on this webpage only. There is no answer-key download, and this guide is left out when printing the page.
Show answers for all 6 worksheets
Worksheet 1
- Question 1: Why choose For all sprites? a) All three buttons use the same values
- Question 2: Which variable records the number of A or B clicks? b) Clicks
- Question 3: Which block group contains Make a Variable? b) Variables
Worksheet 2
- Question 4: What is the displayed starting Score? 0 / zero
- Question 5: Which button adds 3 points? b) B
- Question 6: Which two values must Reset initialise? c) Score and Clicks
Worksheet 3
- Question 7: After Reset, then B, A, B, what is Score? 8 / eight
- Question 8: After those three scoring clicks, what is Clicks? 3 / three
Worksheet 4
- Question 9: Which pair should appear after Reset, A, B? b) Score 5; Clicks 2
- Question 10: Which pair should the final Reset produce? a) Score 0; Clicks 0
- Question 11: What should you check if A changes an unrelated variable? c) The variable name in A's block
Worksheet 5
- Question 12: In test 1, what final Score should appear? 4 / four
- Question 13: In test 2, what final Score should appear? 6 / six
- Question 14: In test 3, what final Clicks should appear? 2 / two
Worksheet 6
- Question 15: Write the two variable instructions needed in B's click handler. change Score by 4; change Clicks by 1. Accept equivalent pseudocode with the same names and values. The event when this sprite clicked remains above them. Grown-up review.
- Question 16: After Reset, B, A, what should Score and Clicks be? Explain how this checks your change. Score 6 and Clicks 2. The B click contributes 4, A contributes 2, and two scoring clicks are counted. The test checks the changed score while preserving Clicks. Grown-up review.
Curriculum & workbook reference
- Cambridge Primary Computing Learner’s Book 5 — pages 9–13 and 16–25
- PaxaKids Grade 5 Computing Lesson 1.3: Build a shared game counter — pages 1–6
Computing for your homeschool day
Explore Assigning variables with this free Grade 5 Computing lesson. Read one idea together, try the fillable workbook and return to review at your own pace. Download the same student worksheet PDF for pencil-and-paper practice.
Fit learning around your family’s day. There is no timer and no sign-up is needed to use the lesson. An optional account saves your lesson position and completion across devices. Workbook responses and drawings stay in this tab; save a copy of your responses before leaving.
Understand your results
Your answers are checked in your browser. Open responses need grown-up review and are shown separately from the automatic score. Check your work, then use “Retry answers to practise” to revisit mistakes while keeping correct responses.
Choose Review Answers after trying the activity. The guide stays on the webpage; the worksheet download contains only the student pages.
For curriculum background, visit the Cambridge Primary Computing overview.
The book pages identify the related computing topic. The teaching and workbook activities are original PaxaKids learning materials.
