MailBot
Game
Leaderboard
NandGame
API
Movement
-
robot.move();: moves the drone forward one space if possible.
-
robot.moveFast();: moves the drone forward two spaces if possible.
-
robot.reverse();: moves the drone backward one space if possible.
-
robot.reverseFast();: moves the drone backward two spaces if possible.
-
robot.right();: turns the drone clockwise.
-
robot.left();: turns the drone counterclockwise.
Sensors
-
robot.sonar();: returns how far away the nearest wall is in all directions.
-
robot.radar();: returns the distance of the nearest package and deposit if they are closer than 5 tiles.
-
robot.gps();: returns current location of the drone.
-
robot.room();: returns the contents of the current tile.
Actions
-
robot.grab();: picks up the item in the current tile.
-
robot.drop();: drops up the item in the drone is holding.