Skip to content

Instantly share code, notes, and snippets.

View ileacristian's full-sized avatar

Ilea Cristian ileacristian

View GitHub Profile
@ileacristian
ileacristian / robot.js
Created December 5, 2012 17:23 — forked from 0x539/robot.js
0x539
//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);