Materials
- Paper and a pencil
- A ruler to draw a 5-by-5 grid
- A paper token for the robot and another for the target
- A partner to read or follow the program
Build and test
- Draw a 5-by-5 grid. Label columns A to E from left to right and rows 1 to 5 from bottom to top. Put the robot at A1 and the target at C3.
- Choose four commands: UP, DOWN, LEFT and RIGHT. Each command moves the token exactly one square on the page; the robot does not turn. Moving outside the grid is an error.
- Write a program before moving the robot. For example, RIGHT, RIGHT, UP, UP should reach C3 from A1. Predict the final square, then let your partner follow only the written commands.
- If the robot misses the target, trace the commands one at a time. Find the first step that does not match your plan, change the program and start again at A1. This is debugging.
- Introduce a loop: REPEAT 2 [RIGHT] means carry out RIGHT twice. Rewrite the example as REPEAT 2 [RIGHT], then REPEAT 2 [UP]. Check that it reaches the same square. The notation is shorter, but the robot still makes four moves.
- Mark B2 as a blocked square. Write a new route from A1 to C3 that avoids it. Run your program three times, always resetting the token to A1. Swap roles and compare programs that use different routes.
What is happening?
An algorithm is a step-by-step method for solving a problem. A sequence puts instructions in order, a loop repeats instructions and debugging finds and fixes errors. In this activity your partner acts as the computer: precise commands matter because the partner follows what is written. Different programs can reach the same target. A shorter written program does not necessarily make the robot take fewer steps.
Questions to ask your team
- Did your partner need to guess what any instruction meant?
- Which command first caused an unexpected result?
- Does using a loop change the destination or only how you write the program?
- How many moves does your route need, and can you find one with fewer moves?
- What changes if you move the target to E5 or add another blocked square?
Make a record of your experiment
Save each program and mark the square reached after every command. Record the first error you found and how you corrected it. Repeat your final program three times from the same starting square to check that another person can follow it consistently.
Keep building
Try the paper bridge challenge next. Learn about Foundry STEM's workshops and classroom kits, or volunteer with our Orlando team.

