A robot is placed in a 5x5 grid. The robot's starting position is shown in the grid below by the arrow symbol ▲ at Row 3, Column 3, which indicates it is initially facing North (Up).
Black squares containing an [Obstacle] cannot be moved into.
| Row / Col | Column 1 | Column 2 | Column 3 | Column 4 | Column 5 |
|---|---|---|---|---|---|
| Row 1 | |||||
| Row 2 | [Obstacle] | [Obstacle] | |||
| Row 3 | [Obstacle] | ▲ (Start) | [Obstacle] | ||
| Row 4 | |||||
| Row 5 |
WHILE ObjectAhead() = true
TurnRight()
IF ObjectAhead() = true THEN
TurnLeft()
TurnLeft()
ENDIF
Forward(1)
ENDWHILE
Forward(1)
Determine the sequential path of coordinates the robot visits from start to finish. Specify each step in order using the format (Row, Column).