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 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) walk forward one complete step end repeat 6. turn right 90 degrees 7. repeat until (you are directly in front of a wall) walk forward one complete step end repeat 8. turn right 9o degrees 9. repeat until (you are directly in front of a wall) walk forward one complete step end repeat 10. turn right 90 degrees 11. repeat until (you are directly in front of a wall) walk forward one complete step end repeat 12. turn left go degrees 13. repeat until (you are directly in front of a wall) turn right 90 degrees end repeat 14. repeat until (you are out of the maze) walk forward one complete step end repeat Figure 1-17
Step by Step Solution
3.25 Rating (174 Votes )
There are 3 Steps involved in it
1 walk into the maze 2 turn left 90 degrees 3 repeat until you are directly in front of a wall walk ... View full answer
Get step-by-step solutions from verified subject matter experts
