Obstacles on the Map
Walls, rocks, and water block your path. Read the map, plan around obstacles, and test a route that never bumps.
- Identify obstacle symbols on a grid map
- Plan a path that goes around, not through, a blocker
- Debug a plan that bumps an obstacle in the lab
Finish first
Topic contents
Lesson 1 of 3
Blocked squares
An obstacle is any square you may not enter. On the map it might look like a rock, a tree, or a dark wall tile. Your path must use only open squares.
When you trace a route, slide your finger around the obstacle like water flowing past a stone. If your finger would cross a dark square, pick a new lane.
Load an obstacle course in the robot lab. A plan that worked on an empty grid might now bump on square three. The wall was always there; the plan ignored it.
Robot planner
Pick a plan with walls on the grid. Reroute around obstacles until the robot reaches the flag without a bump.
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
Go around, not through
Sometimes the shortest line crosses a wall. The legal path bends. Add turns to skirt the edge of the obstacle even if the map looks longer.
If two ways around exist, compare step counts again. One side might need only one extra turn while the other needs three forwards.
When the robot bumps, mark the square on your paper map. That is the step where your path tried to cross a blocker.
Lesson 3 of 3
Obstacles in real navigation
Parks, museums, and schools all have obstacles: fences, ponds, closed doors. Maps show them so you do not waste steps walking into a dead end.
Games use the same trick. Mazes are grids with many obstacles. The skill is reading and revising, not memorising one lucky path.
Next you will focus on turns that aim the robot before it moves forward.
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.
