Robot In A Can
ENFR
Back

03 · Your First Program

Robot In A CanROBOT GAMES

Make a list of instructions for your robot.

Your First Program — pixel-art activity icon
A program is a list of instructions followed one after another. Begin with the lily-pad game to think about sequences, then build your first program in Snap. Later, ask a workshop leader to help you try a short program on your robot.

For real robot moves in Snap, ask your workshop leader to check the block values first. Use the Remote on card 02 for measured distances and turns.

Try it step by step

  1. Step 1 of 3

    Warm up: commands in order

    Before opening Snap, try Neon Pond below. Add arrows to plan the explorer’s jumps, then press LANCER (Run). Predict what will happen if you swap two commands. Test, correct and try again. This warm-up only moves the character on screen; it does not connect to your robot.

  2. Step 2 of 3

    Your challenge: a square

    Can you make four equal sides with a turn at every corner? Build the whole sequence yourself before using a loop. What commands must repeat to get back to the start? For a real robot, use the robot blocks and short movement values checked by your workshop leader.

  3. Step 3 of 3

    Build and run

    This real Challenge 1 starter moves the on-screen sprite. Snap’s blue Motion steps are screen steps, not millimetres. Join blocks under the green flag, change the move and turn numbers, then press the green flag to test your program.

Explore next