MailBot

Game

Leaderboard

NandGame

API

Movement

  1. robot.move();: moves the drone forward one space if possible.
  2. robot.moveFast();: moves the drone forward two spaces if possible.
  3. robot.reverse();: moves the drone backward one space if possible.
  4. robot.reverseFast();: moves the drone backward two spaces if possible.
  5. robot.right();: turns the drone clockwise.
  6. robot.left();: turns the drone counterclockwise.

Sensors

  1. robot.sonar();: returns how far away the nearest wall is in all directions.
  2. robot.radar();: returns the distance of the nearest package and deposit if they are closer than 5 tiles.
  3. robot.gps();: returns current location of the drone.
  4. robot.room();: returns the contents of the current tile.

Actions

  1. robot.grab();: picks up the item in the current tile.
  2. robot.drop();: drops up the item in the drone is holding.