Skip to content

Instantly share code, notes, and snippets.

@Symar
Symar / robot.js
Created December 4, 2012 11:59
Rabbit
//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);