Kubrio.
All concepts

World 3 · Loops · Guide 3 of 5Free guide

Can a loop make a pattern?

Put two blocks inside one loop and it runs both, over and over.

Meet the + and the ✓

A loop can hold more than one block. Tap 🔁 and the loop opens. While a loop is open, every block you tap goes inside it. Tap →, then tap ↑, and both of them land in there. When the loop has everything it needs, tap the ✓ on its right end. Now it shows a +, and the next block you tap goes after the loop instead of inside it. Tap the + to open it again.

the number — how many times
the + — tap to put blocks inside

So this one loop says: move right, then move up — and do both of those three times.

See it work

Here is the same climb twice. First the long way, one block for every step. Then the same climb with two blocks inside one loop. Watch both.

ExampleThe long way — six blocks

ExampleThe loop — three blocks

Same stairs, same yarn. A loop with two blocks inside runs both of them, in order, every time — and right, up, right, up is what makes a staircase.

Your turn

Now you're the programmer.

Can you walk the cat up the stairs?

Pick up every ⭐ on the steps, then land the 🐱 on the 🧶.Solve it with 3 blocks → ⭐⭐⭐0 blocks

Blocks

Your program

Go further

What happens if you swap the two blocks inside?

Put the ↑ before the → inside the loop and press play. The cat climbs first, so it walks up the other side of every step. Same blocks, same loop, a different pattern — and this one misses every star, so the yarn turns it away. The stars tell you which staircase the yarn wanted.

For grown-ups

A loop that repeats several steps, in order, is how programs draw patterns, tile floors, and build whole game levels.

Keep going

Next in World 3Loops and events together

Where this goes

Make a game other kids can play

The blocks on this page are a first taste. In a Kubrio project your kid builds a real game — powers, triggers, levels and all — and other kids get to play it.

Ingenious projects that inspire kids to make things — until they find the thing only they could make.
Ages 6–13.
See the game projects or explore all the projects