Algorithm Simulator
Before you play the physical game, try writing code here. Click the command blocks to build an algorithm that moves the Robot (triangle) to the Goal (star) without hitting the soft obstacle (pillow square).
⟁ Write Your Code
The Full Module — Reading Mode
What This Is
An algorithm is just a recipe — a set of instructions given in a specific order to get a job done. If you want to bake a cake, you can't put the flour in the oven before mixing it with eggs. The order matters. Computer code works the exact same way: a recipe for a computer to follow.
In this activity, your child draws "code blocks" (arrows on paper), arranges them on the floor to build an algorithm, and you — the Human Robot — read their algorithm and execute it perfectly to navigate an obstacle course.
This isn't a loose metaphor. Real Mars rovers are controlled with command sequences built from exactly this small set of moves: turn left in place, turn right in place, and move forward — the same three actions your child will be giving you today. The order those commands arrive in determines everything the rover does, with no room for "it probably meant."
The Code Blocks
The programmer writes their code by drawing four types of Code Blocks on separate pieces of paper (at least 5 of each):
- [ ↑ ] = Take one step FORWARD
- [ ↓ ] = Take one step BACKWARD
- [ ↰ ] = Turn your body LEFT (no step, just spin in place)
- [ ↱ ] = Turn your body RIGHT
Notice and Wonder
After the robot successfully reaches the goal, sit down and talk about what happened. Did the robot know where to go on its own? No — it needed the arrows. What happened when the arrows were in the wrong order? The robot stopped at the obstacle. If we move the obstacle to a new spot, does the old code still work, or do we need to write new code?
Code is communication — a way to talk to a machine using very simple, specific steps. By physically moving paper arrows to change your behavior, your child is practicing the exact same kind of command sequence that controls real rovers exploring Mars: move forward, turn left, turn right, in a precise order, with zero room for guessing.
Field Engineering: Step by Step
Build It For Real
Materials
Complete Project Checklist
Getting Ready
- 20 squares of paper cut out
- Child drew 5 of each direction (Forward, Backward, Left turn, Right turn)
- Start, Goal, and a soft obstacle placed in the room
- Left/right accommodation decided if needed (marked hand, or landmarks)
Building the Algorithm
- Child laid the paper arrows in a sequence on the floor
- Adult stood on the Start marker, ready to act as the robot
Testing and Debugging
- Adult followed the arrows exactly, step by step, with no guessing
- If robot reached obstacle, it stopped gently — never collided
- The first bug was met with delight and curiosity, not error-energy
- Child "debugged" the arrows and restarted from the beginning
- Robot successfully reached the Goal marker