โ† Back to Code

๐Ÿค– Robot Blocks

Tap blocks to tell the robot what to do, then press Run. Get it to the ๐Ÿ’Ž using as few blocks as you can. There are eight puzzles, and each one teaches one new idea.

Robot Blocks puzzle

1. Straight On

Blocks used0
Best possible3
Your starsโ€”

Build a program to get the robot to the ๐Ÿ’Ž.

Your program

    Blocks you can use

    Puzzles

    How to Play

    Building a program
    Tap a block on the right and it joins your program on the left. Tap the โœ• on a block to take it away. Then press Run and watch the robot follow your instructions, one at a time.
    Putting blocks inside a loop
    Tap a ๐Ÿ” Repeat block and it opens up โ€” everything you tap next goes inside it, and appears indented. Press โฌ… Out of the loop when you want to add blocks after it instead. Use โˆ’ and + to change how many times it repeats.
    Stars
    Getting the treasure is a win. Getting it in the fewest possible blocks is โญโญโญ. The "best possible" number is always shown, so you know what you're aiming for.
    Bonk!
    If the robot walks into a wall it stops and shakes. Look at where it got stuck โ€” that's the part of your program to fix.
    The big idea
    The robot only does exactly what you tell it, in exactly the order you say. When it goes wrong, the robot isn't being silly โ€” the instructions were. Finding out which one is the whole job of programming.
    When you've finished these
    Try the Code Playground, where you type real code instead of tapping blocks.