JavaScript Robot Simulator (Updated)

The application can read commands in following format (case insensitive):

Current Status:


The robot controller object has the following methods: Put the robot code in the yellow textarea. controller.move(); will move the robot forward. Returns true if robot moves. controller.right(); will rotate the robot clockwise. Use await sleep(200); to slow down the command processing if needed. Any Javascript may be used. if(){} and while(){} may be used. Press the Execute button to execute the code.