Skip to content

Instantly share code, notes, and snippets.

View pcalcado's full-sized avatar

Phil Calçado pcalcado

View GitHub Profile
@pcalcado
pcalcado / robot.js
Created December 4, 2012 19:12 — forked from kamuflage661/robot.js
GACEK
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
//robot.clone();
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
//robot.rotateCannon(90)
@pcalcado
pcalcado / robot.js
Created December 3, 2012 10:05 — forked from victorlcampos/robot.js
Bartorista
function Robot(robot) {}
// well, we need to do something...
// whenever our robot is idle, this method gets called.
Robot.prototype.onIdle = function(ev) {
var robot;
robot = ev.robot;
robot.ahead(50);
robot.turn(90);
robot.rotateCannon(10);
robot.rotateCannon(-20);