rAs Kids All courses
Make It Move ยท Module 6 of 8
๐Ÿ“ฑ Shared phone

Loops Save Your Legs

Say it once, wrap it in a loop, and the machine repeats it forever without getting bored.

๐Ÿ” [ โžก๏ธ โ†ช๏ธ ] ร— 4
One pair of blocks inside a big curved arrow marked with the number four.

๐ŸŽ’ What you need

โœ‹ Do this

  1. First with bodies: instead of shouting eight commands for a square, shout 'repeat four times: forward, turn right'. Watch your friend do it.
  2. On the phone, find the 'repeat' block. Drag your move-and-turn pair inside it. Set it to 4.
  3. Run it. Same square, half the blocks. Count the blocks you deleted โ€” that number is what a loop saved you.
  4. Change 4 to 3 and the turn to 120. Watch a triangle appear. One number, whole new shape.
  5. Put a 'forever' loop around everything and add a small turn. Watch it spin until you stop it.
  6. Now try to draw a circle. Big repeat number, tiny turn. Point at the moment it stops looking like a polygon.

๐Ÿ’ก Why it works

Loops are why robots can do the boring jobs. A machine sorting maize does not need a million instructions โ€” it needs one instruction wrapped in 'do this again'. And a robot's main brain loop, running hundreds of times a second, is exactly this: check the sensors, decide, move, repeat.

๐Ÿ”ฅ Challenge

Draw a five-pointed star using only one repeat block. You will need to work out the turn number by trying โ€” that is allowed and expected.

๐Ÿ“– New words

loopan instruction to do something again and again
repeatthe block that says how many times
๐Ÿ”
Loop Lord

Tap when you have finished this module.