Lesson 5: Programming a game

After playing the game 'Robot Bop' children explain the action and algorithm behind it, then represent the code on paper before programming it into Scratch to replicate the original

Before the lesson

Download classroom resources

Learning objective

  • To program a game

National curriculum

Pupils should be taught to:

  • Design, write and debug programs that accomplish specific goals, including controlling or simulating physical systems; solve problems by decomposing them into smaller parts
  • Use sequence, selection, and repetition in programs; work with variables and various forms of input and output
  • Use logical reasoning to explain how some simple algorithms work and to detect and correct errors in algorithms and programs

Success criteria

Cross-curricular links

Attention grabber

Main event


Pupils needing extra support: Provide some of the code completed next to the algorithm to reinforce the link. This also provides a reduced number of blocks when matching the code to the second part of the algorithm.

Pupils working at greater depth: Independently complete the challenges.

Wrapping up

Assessing pupils' progress and understanding


Created by:
Sway Grantham,  
Computing specialist
Sway Grantham (@SwayGrantham) is a Primary School Teacher, a CAS Master Teacher and Specialist Leader in Education for Primary ICT. She also has a BCS Certificate in Computer Science Teaching (Primary). She has written several curricula and conducted research into the…
Find out more