Treasure on a Grid
A treasure sits on a grid and you write the steps to reach it. Use the robot lab to test whether your plan matches the map in your head.
- Place forwards and turns on a grid to reach a goal
- Run a plan in the robot lab and watch each step
- Fix a plan when the robot stops short of the treasure
Finish first
Topic contents
Lesson 1 of 3
Goal on the board
Picture a five-by-five grid. You stand on a corner facing along a row. A treasure icon sits three squares away with one turn in between. Your job is to write the steps, not to guess while walking.
Count squares on the map before you write. Two forwards in a row mean two separate steps, not one long jump. Each forward is exactly one square.
Open the robot lab and load a treasure hunt plan. Press play and watch the robot stop on the flag. If it stops early, your count was short.
Robot planner
Build a path to the treasure and press play. Add forwards and turns until the robot stops on the flag.
Robot planner
Sequences, turns, repeats and choices- Forward
- Forward
- Forward
Start
The robot starts here, facing right. The plan has 3 steps. It will follow them exactly, even when that is wrong.
Lesson 2 of 3
Write, then watch
Type or pick your steps in order: forward, forward, turn left, forward. The robot follows literally. It will not cut corners across blocked squares.
If the treasure is one square farther than you thought, add one forward at the end rather than rewriting the whole plan from scratch.
Celebrate small fixes. Treasure hunts are puzzles where the prize is a working list of moves.
Lesson 3 of 3
Treasure as a habit
Hopscotch squares, treasure hunts on the playground and puzzle apps all use the same idea. Find the spot, plan your moves, then take them one at a time.
Before you close this topic, sketch a tiny map on paper and trade plans with a friend. See if their robot reaches your treasure.
Next you will think about shorter paths, not just any path that works.
Practice
Work these out yourself
No answer key here on purpose: these are the questions worth thinking through before you move on. Open one and work it out.
0/3 attemptedAssessment
Check your understanding
Answer each question, then read the explanation. That is where the learning is.
Finished this topic?
0 of 3 lessons marked done. Marking the topic complete ticks the rest.
