Teacher guide · Think Lab · Medium · about 32 min

🐞 Bug Squash

Pupils practise problem solving through "Bug Squash": Find and fix mistakes in code.

Lesson guide

  1. 1. Hook · 5 min

    Show the 🐞 mission title and read the opening: "To draw a square, 'Repeat 3: move, turn right'. The bug?". Take three quick guesses.

  2. 2. Model · 5 min

    Think aloud through the first step together. Use Cog the Owl's line as your prompt: "Good thinking. Show me the why."

  3. 3. Do · 10 min

    Pairs work through the 3 steps on screen or on the printed sheet. Circulate and ask "why?"

  4. 4. Discuss · 10 min

    Use two or three of the discussion questions. Ask pairs to share different answers, not just correct ones.

  5. 5. Reflect · 5 min

    Exit ticket: one sentence on how they used problem solving today.

Discussion questions

  • What was the hardest choice in "Bug Squash", and why?
  • To draw a square, 'Repeat 3: move, turn right'. The bug — explain your reasoning to a partner.
  • Debugging means… — explain your reasoning to a partner.
  • Describe how you'd test a robot that should walk 5 steps — explain your reasoning to a partner.
  • Where could you use problem solving outside school this week?
  • If you did this again, what would you change?

Adapting it

Support: Read prompts aloud, pair with a confident partner, and accept spoken or drawn answers for writing steps.

Stretch: Ask pupils to create their own extra step for a partner and explain the correct answer.

Curriculum links

  • National Curriculum: Computing: algorithms, debugging and online safety
  • National Curriculum: Maths: reasoning mathematically and problem solving
  • National Curriculum: Computing: logical reasoning and algorithms
  • PSHE: Living in the wider world: making decisions and evaluating choices

Pupil sheet

🐞 Bug Squash

Name: ____________________   Date: __________

  1. 1. To draw a square, 'Repeat 3: move, turn right'. The bug?

    ☐ It should repeat 4

    ☐ Move further

    ☐ Turn left

  2. 2. Debugging means…

    ☐ Adding bugs

    ☐ Deleting all code

    ☐ Finding and fixing errors

  3. 3. Describe how you'd test a robot that should walk 5 steps.