Skip to main content
Module 4 · Manhattan Navigation

Lesson 4-6 · On the Robot — Knowledge ChecksAnswer key

Correct answers are marked and the explanation follows each question.

  1. Yesterday's printout was right, but today the robot turns one too few times at a corner. Where is the problem?

    1. A.In compute_manhattan_path()
    2. B.On the robot side: a turn that missed or doubled up a line, the tape, or the battery. The same code printed the right turns✓
    3. C.In the print statements
    4. D.In DELIVERY_STOPS

    The planner, get_desired_heading() and turn_to() were tested on screen and didn't change. Only the two real calls are new, so look at what they do on the floor: the turn's blind angle, the tape, the battery.