Skip to content

Instantly share code, notes, and snippets.

@hainna01
hainna01 / robot.js
Created December 3, 2012 16:56
GLARBTRON
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(100);