Lesson 9 · Capstone Project — Knowledge ChecksAnswer key
What is the main challenge of the capstone?
Every component already exists and was tested in earlier lessons. The capstone is about connecting them correctly — integration, not new algorithms.
What single data structure connects loading, pathfinding, detection, and saving?
The blocked list flows through every stage: file → Dijkstra → detection → file. If it doesn't flow correctly, the whole system breaks.
When an obstacle is found partway along a path, why break out of the inner for loop?
The rest of the current path may run through the new obstacle, so it's invalid. Breaking out returns to the while loop, which builds a new path from where the robot is.
Which is a classic capstone integration bug to watch for?
The blocked list must persist across all destinations in a run. Re-creating it empty for each destination throws away everything learned so far. (Also common: not updating current, or not rebuilding Dijkstra after blocked changes.)
In the demo, what evidence shows the robot 'learned'?
The measurable improvement from Run 1 to Run 2 — fewer reroutes and steps — is the evidence. Same algorithm, better data from the saved file.