The algorithm in Figure 1-17 does not get Robin the Robot through the maze. Correct the algorithm.

Question:

The algorithm in Figure 1-17 does not get Robin the Robot through the maze. Correct the algorithm. 


Robin should end up here 1. walk into the maze 2. turn left 90 degrees 3. repeat until (you are directly in front of a wall) walk forward one complete step end repeat 4. turn right go degrees 5. repeat until ( you are directly in front of a wall)

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: