Skip to content

Instantly share code, notes, and snippets.

@kevj
kevj / robot.js
Created December 3, 2012 22:17 — forked from AndreMeira/robot.js
JONES II
var Robot = function(robot){
robot.ahead(140);
robot.turn(90);
robot.clone();
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(15);
robot.rotateCannon(5);
@kevj
kevj / robot.js
Created December 3, 2012 21:54
JONES
//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);