Skip to content

Instantly share code, notes, and snippets.

@naab
naab / robot.js
Created December 8, 2012 22:41
Roger
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
var mine = {
seen_ennemy: false,
cannonAngle: 0,
};
@naab
naab / robot.js
Created December 8, 2012 22:08
Roger
//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);