Skip to content

Instantly share code, notes, and snippets.

View opiispanen's full-sized avatar

Otto Piispanen opiispanen

View GitHub Profile
@opiispanen
opiispanen / robot.js
Created December 3, 2012 20:29
GeneralPwner
//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(200);