Beginner
30 mins
Teacher/Student led
+90 XP
Teacher-led from the board — pupils need no device

Patterns and Bugs

Children spot a repeating bit in a short dance, find one wrong step (a bug), and swap it so the sequence works again — then try the same idea with a robot on the board.

Teacher Class Feed

Load previous activity
    Your turn
    Your teacher is running this lesson on the board. Here is the part you can try yourself.
    Demonstration
    Ste exploration
    Algorithm sequencer

    1 - Getting Started ~3 mins

    Illustration for Getting StartedWatch carefully what my hands do. I will clap, clap, spin, then clap, clap, spin again. Which bit came back more than once?

    Key point

    That bit that comes back is called a pattern. Today we will spot patterns in short dances. We will also look for a bug (that means a wrong step) and fix it together.

    2 - Bug and Fix Words ~3 mins

    Key point

    Our star word today is bug. A bug means a wrong step (not a creepy-crawly). Watch my crossed arms when I say it.

    Key point

    When we change that wrong step so the dance works again, that is our fix. Give me a thumbs up for fix!

    3 - Watch Me Spot and Fix ~5 mins

    Watch the cards I am putting on the floor. Each card shows one move, like a jump or a clap. First we will find the bit that happens more than once. Then I will put one wrong card in on purpose. Can you spot the bug (the wrong step) and tell me how to fix it?

    4 - Act It and Fix It ~10 mins

    Illustration for Act it and fix itLook at the dance picture on the board, then lay those same cards on the floor in your group and act the dance together once, so everybody knows how it should feel.

    When I call "bug time", cover your eyes while the helper I name swaps one card for a wrong one. Then everyone looks, points to the bug (the wrong step) and says the fix, and the helper swaps it back so you can act the dance again the right way.

    5 - Find the Bug on the Board ~5 mins

    Now we keep the same idea, find the wrong step, but with new robot moves on the board. First we will watch which way the robot is looking. One step is a bug. Where is it? What should we change? Tell me, and we will fix it together, then press run.

    Find the bug

    123learn · Online learning platform

    Unlock the full learning experience

    You're previewing this lesson. Get full access to this lesson and hundreds more — each one ready to teach, with interactive activities, printable resources and pupil progress tracking built in.

    Hundreds of curriculum-aligned lessons
    Interactive activities in every lesson
    Printable resources & progress tracking
    Copyright Notice
    This lesson is copyright of Coding Ireland 2017 - 2025. Unauthorised use, copying or distribution is not allowed.
    🍪 Our website uses cookies to make your browsing experience better. By using our website you agree to our use of cookies. Learn more