Lesson 5: 'The Three Little Pigs' algorithms

Children put into practice all they have learnt, using a mixture of blocks to programme the story of the 'Three Little Pigs'

Before the lesson

Download classroom resources

Learning objective

  • To plan and use code to create an algorithm

National curriculum links

Pupils should be taught to:

  • Understand what algorithms are; how they are implemented as programs on digital devices; and that programs execute by following precise and unambiguous instructions
  • Create and debug simple programs

Success criteria

Cross-curricular links

Attention grabber

Main event


Pupils needing extra support: During the AfL (Assessment for Learning) activity, reduce the number of block possibilities. Focus on one character at a time, sit with an adult who can replay the original each time for them to focus on just that one character.

Pupils working at greater depth: Encourage them to take the algorithm and structure of the first little pig and apply it more independently to the second pig (sticks house).

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