🐢 Turtle Maze

Your Code

Write code to guide the turtle to the red exit!
Commands:
FORWARD or FORWARD 3 — move forward
LEFT — turn left 90°
RIGHT — turn right 90°
WHILE CLEAR ( ... ) — repeat while no wall
WHILE WALL ( ... ) — repeat while wall ahead
WHILE NOT EXIT ( ... ) — repeat until exit reached
IF WALL ( ... ) — do if wall ahead
IF CLEAR ( ... ) — do if no wall ahead
IF WALL ( ... ) ELSE ( ... ) — if/else