Logic Puzzles

Repeat Loops

A dance teacher doesn't say "step, clap, step, clap, step, clap"; they say "step and clap, three times". Repeat Loops asks the child to spot the part of a robot's path that repeats, and write it once with a number.

Free sets by level, ages 6–10:

Repeat Loops, Level 2: two grids with a robot and a picture, each with a repeat box of arrow cards and a blank for how many times.Level 2: a page from the free set

Before starting

  • Level 2: follow a program of arrow cards on a grid
  • Count to 5
  • Level 3: forward, turn left and turn right cards

What you need

A colored pencil to circle each repeat on the path, and a pencil for the boxes.

Free puzzles to print

Each set: a Learn sheet with a worked example, 10 puzzles from easiest to hardest, and the answers.

  • Level 2

    Ages 6–8 · Grades 1–2

    Repeat Loops, Level 2: two grids with a robot and a picture, each with a repeat box of arrow cards and a blank for how many times.

    (arrow cards on a small grid with rocks): fill only the number. Then the number and the two cards of a stair pattern. Then every blank, with a card before and after the box. The hardest puzzles print a long program and ask the child to write it again with the fewest cards, using one repeat box.

    On the sheet: “Fill in the blanks so the robot stops on the picture. The cards in the box repeat.”

    Print Level 2 (Letter)Other paper size: A4
  • Level 3

    Ages 8–10 · Grades 3–4

    Repeat Loops, Level 3: two path-shaped boards with a robot and a picture, each with an empty repeat box of three cards to fill.

    (turn cards on path-shaped boards): a box of three cards and its number to fill, then four cards. Then a box inside a box (forward a few times, then turn, all repeated). The hardest puzzles print a long program of 12 to 22 cards to write again with a box inside a box. Numbers run from 2 to 4.

    On the sheet: “Fill in the blanks so the robot stops on the picture. The cards in the box repeat.”

    Print Level 3 (Letter)Other paper size: A4

How it works

Each program has a repeat box: the cards inside the box run again and again, as many times as the number beside it says. Some cards and numbers are left blank. The child finds the part of the path that repeats and fills the blanks so the robot stops on the picture. Level 2 uses arrow cards; Level 3 uses forward and turn cards.

How to play

  1. Trace the path from the robot to the picture.
  2. Find a piece of the path that comes again and again, such as right, up, right, up.
  3. Write that piece in the box once, and the number of times in the circle.
  4. Run your program: do the whole box, then do it again, until the number is used up.

When it gets hard

  • Writing the number of squares instead of the number of repeats.

    Hint: The number says how many times the whole box runs. Count the circles, not the squares.

  • Running only the last card of the box again.

    Hint: Each time the box runs, go back to its first card.

  • At Level 3, losing track of a box inside a box.

    Hint: Finish the small box completely every time before the next card of the big box.

Tip for grown-ups: Clap a pattern (clap, clap, stomp) three times, then ask your child how to say it in fewer words. "Clap, clap, stomp, three times" is a repeat box.

Frequently asked questions

Is this a pattern puzzle or a coding puzzle?
Both. It uses the same eye for patterns as a picture pattern, but here the pattern is in the robot's moves. The child also counts how many times it repeats and writes it as one box, which is how a loop works in code.
What if my child writes out every move instead?
In most puzzles the boxes are printed, so the child only fills the blanks. In the rewrite puzzles the long program is already on the page, and the job is to write it shorter. Ask: which part is written more than once?

Questions about printing, levels, answers or membership: see all questions.

Repeat Loops, Level 2 Learn sheet with a worked example

Worked example

From the Level 2 Learn sheet

  1. Find the part of the path that repeats.
  2. Circle it each time it comes. Count the circles: that is the number.
  3. Follow your program to check. The whole box runs again each time.

A question to ask: “Which steps does the robot do again and again?”

Free every Sunday A mixed bag of 20 new puzzles, all four levels. Get them by email

The thinking it works on

  • Spotting a repeating pattern

    Finds the piece of the path that comes again and again.

    Mulligan and Mitchelmore (2009) studied 103 first graders. Noticing pattern and structure showed up across many kinds of math task and went with general math understanding. Source

  • Counting equal groups

    Counts how many times the piece repeats.

    Mulligan and Mitchelmore (1997) followed girls through grades 2 and 3. They found three main ways of working out multiplication problems: counting one by one, adding the same number again, and multiplying. Source

  • Saying more with less

    Writes the repeating piece once, with a number.

  • Keeping count while running a loop

    Knows which pass of the box the robot is on.

    Vourletsis (2026) gave 517 children in grades 1 to 3 a paper test of coding ideas. They did best on step-by-step sequences and less well on loops, and the gap between the two was statistically clear. Source

  • A pattern inside a pattern

    Sees a small repeat inside a big one.

Where is this thinking used?

  • Music: A chorus written once with "repeat 3 times" above it.
  • Crafts: A bead or knitting pattern repeated down a whole bracelet or scarf.
  • Exercise: Three sets of ten jumps, written as one line.
  • Programming: A loop in code that runs the same steps again and again.

For teachers

Curriculum areas
Common Core
Operations and algebraic thinking: equal groups (Grade 3)Level 2: No direct curricular match.
Computer science (CSTA)
Programs with loops, including a loop inside a loop (algorithms and programming, ages 5–14)

Math practices: see the box below.

Math practices this puzzle uses

  • Not used: MP1 Make sense of problems and persevere in solving them
  • Not used: MP2 Reason abstractly and quantitatively
  • Not used: MP3 Construct viable arguments and critique the reasoning of others
  • Not used: MP4 Model with mathematics
  • Not used: MP5 Use appropriate tools strategically
  • Not used: MP6 Attend to precision
  • Uses: MP7 Look for and make use of structure
  • Uses: MP8 Look for and express regularity in repeated reasoning

From the Common Core Standards for Mathematical Practice.

More Repeat Loops puzzles for members

Members get at least 5 more worksheets at each difficulty for every puzzle, 80 new puzzles every Sunday, and the whole archive. $39 a year or $25 for 6 months.

See membership

Not ready yet?

Try these next

More logic puzzles

New here? Start here

Also known as: loop puzzles, repeat-block puzzles, screen-free coding loops.