The robot
controller
object has the following methods:
- PLACE X,Y,F
controller.place("X,Y,F")
- BLOCK X,Y
controller.block("X,Y")
/li> - MOVE
bool controller.move() true
if can move,false
otherwise - LEFT
controller.left()
- RIGHT
controller.right()
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.