Skip to content

Instantly share code, notes, and snippets.

@AndreMeira
AndreMeira / robot.js
Created December 4, 2012 22:35 — forked from randompast/robot.js
QR-bot-009
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
var rx = robot.position.x;
var ry = robot.position.y;
var aH = robot.arenaHeight;
var aW = robot.arenaWidth;
robot.clone()
};
@AndreMeira
AndreMeira / robot.js
Created December 4, 2012 20:56
white poney and the big shark
//FightCode can only understand your robot
//if its class is called Robot
var id;
var Robot = function(robot) {
id = this.id;
this.locked = false;
robot.ahead(50);
robot.clone();
};
@AndreMeira
AndreMeira / robot.js
Created December 4, 2012 16:44 — forked from fabiopimentel/robot.js
[CAELUM TEAM]Megatron
//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.clone();
@AndreMeira
AndreMeira / gist:4199479
Created December 4, 2012 00:50 — forked from victorlcampos/robot.js
Bartorista
We couldn’t find that file to show.
@AndreMeira
AndreMeira / gist:4199466
Created December 4, 2012 00:46
W00t #1 YEAH!!!! (Zolmesiter)
We couldn’t find that file to show.
@AndreMeira
AndreMeira / robot.js
Created December 3, 2012 22:44 — forked from cezarsa/robot.js
skaicoo#2
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
var turn = robot.parentId ? 1 : -1;
robot.ahead(100 * turn);
robot.clone();
};
@AndreMeira
AndreMeira / robot.js
Created December 3, 2012 17:05 — forked from victorlcampos/robot.js
taste me
var Robot = function(robot){
robot.back(150);
robot.clone();
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(15);
robot.rotateCannon(5);
};
@AndreMeira
AndreMeira / robot.js
Created December 3, 2012 15:35 — forked from joseleme/robot.js
Dummy goes
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot){
robot.turn(45);
robot.clone();
};
Robot.prototype.onIdle = function(ev) {
@AndreMeira
AndreMeira / robot.js
Created December 3, 2012 15:04
skaicoo
//FightCode can only understand your robot
//if its class is called Robot
var id;
var Robot = function(robot) {
id = this.id;
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
@AndreMeira
AndreMeira / robot.js
Created December 3, 2012 12:59
Anti wall
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
robot.clone();
//robot.rotateCannon(90);
};