Skip to content

Instantly share code, notes, and snippets.

View milletm's full-sized avatar

Millet Martin milletm

View GitHub Profile
@milletm
milletm / robot.js
Created December 6, 2012 14:17
KillerBot
//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);