Skip to content

Instantly share code, notes, and snippets.

View aquamoogle's full-sized avatar

Andrew Beers aquamoogle

View GitHub Profile
@aquamoogle
aquamoogle / robot.js
Created December 7, 2012 20:06
SpecialK 15 Gh3y
var Robot = function(robot) { };
var ticks = 0;
Robot.prototype.onIdle = function(ev) {
ev.robot.ahead(1000);
};
Robot.prototype.onScannedRobot = function(ev) {
var robot = ev.robot;
for(var i = 0; i < 30; i++)
robot.fire();
@aquamoogle
aquamoogle / robot.js
Created December 5, 2012 07:45 — forked from guilhermebruzzi/robot.js
r2d2
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
robot.turn(270 - robot.angle);
robot.rotateCannon(90 - robot.cannonAbsoluteAngle);
robot.clone();
this.options = {
cloneInCorrectAngle: false,
firing: false