03 · Your First Program
Make a list of instructions for 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
- 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.
/apps/code/neon_lilypad_programmer.html
- 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.
- 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.
/apps/ebrain/code/snap/snap.html · /library/projects/challenge1.xml
