Robotics

Move and Turn

Your robot understands exactly two kinds of movement commands: robot.moveForward() moves it one grid square in whatever direction it's currently facing, and robot.turnLeft() / robot.turnRight() rotate it 90 degrees without moving it.

Your whole program runs instantly to plan the path, then plays back as an animation so you can watch what happens.

Your turn

Open the Robotics Lab and get the robot to the goal using only robot.moveForward().

Open Robotics Lab
Ask JARVIS for a hint