How does the robot get out
Home Up

How does the robot get out?


Here is the program. It is written in the right order.
Please fill in the numbers.

1) Step forward --> go to ..
2) Feel forward --> go to ..
3) IF wall: turn left --> go to ..
    ELSE --> go to ..
4) Feel forward --> go to ..
5) IF wall turn left --> go to ..
    ELSE --> go to ..
6) Step forward --> go to ..
7) Feel right --> go to ..
8) IF no wall, turn right, step forward, end program
    ELSE --> go to ..

There is one instance in which this program fails. Which is it?