Skip to content

Instantly share code, notes, and snippets.

@Widmo
Widmo / robot.js
Created December 6, 2012 16:32
Widmo
//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);