Program a robot friend
Learn the basics of coding without a screen, by giving step-by-step instructions to a "robot" (a grown-up!), then code an on-screen robot.
⏱️ 25 min🎂 Ages 5–8, 9–12📈 easy
- Computational thinking
- Problem solving
- Critical thinking
🤖 Robots only do EXACTLY what you say
Robots and computers are fast, but they can’t guess what you mean. You have to give them clear instructions, one step at a time. A list of instructions is called a program, and writing it is coding.
🎮 Try it on the screen
Build a program from the arrows to get the robot to the star. Press Run. If it goes wrong, find the bug and fix it!
Your program (0 steps):
Level 1: build a program to reach the star. The red arrow shows which way the robot faces.
🛠️ Do it for real (no screen needed)
- Choose who is the robot (a grown-up is perfect) and who is the programmer.
- Put a “treasure” (a teddy) somewhere in the room.
- The robot can only obey: step forward, turn left, turn right, pick up.
- Write the program on paper with arrows first (⬆️ ↩️ ↪️), then read it out. The robot must follow it exactly, even if it’s silly!
- Robot bumps into the sofa? That’s a bug. Find the wrong step and debug your program.
- Swap roles!
💡 What happened?
You just learned three big ideas in computer science:
- Algorithm: a step-by-step plan to solve a problem.
- Sequence: the order of steps matters. Turn then walk is different from walk then turn!
- Debugging: finding and fixing mistakes. Every programmer does it, all the time.
Did it work?
🖨️ Printables for this experiment
Circuit maze
Ages 5–8Puzzle · Answer key
Help the electricity find its way from the battery to the bulb.