Skip to content

Instantly share code, notes, and snippets.

@PattenR
PattenR / robot.js
Created December 9, 2012 21:10
PatBotV4
var cloned = false;
var C = false;
var first = 1;
var direction = 0;
function Robot(robot) {}
// well, we need to do something...
// whenever our robot is idle, this method gets called.
var cloned = false;
var C = false;
var first = 1;
var direction = 0;
function Robot(robot) {}
// well, we need to do something...
// whenever our robot is idle, this method gets called.
var cloned = false;
var C = false;
var first = 1;
var direction = 0;
function Robot(robot) {}
// well, we need to do something...
// whenever our robot is idle, this method gets called.
var cloned = false;
var C = false;
var first = 1;
var direction = 0;
function Robot(robot) {}
// well, we need to do something...
// whenever our robot is idle, this method gets called.
@PattenR
PattenR / robot.js
Created December 9, 2012 14:22
PatBotV3
var kill = false;
//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;
@PattenR
PattenR / gist:4244989
Created December 9, 2012 13:57
PLEASE DELETE
We couldn’t find that file to show.
@PattenR
PattenR / robot.js
Created December 9, 2012 13:56
PatBotV3
var kill = false;
var cloned = false;
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
@PattenR
PattenR / robot.js
Created December 9, 2012 13:54
PatBotV3test
var kill = false;
//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;
@PattenR
PattenR / robot.js
Created December 7, 2012 18:41 — forked from michal-gil/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()
};
@PattenR
PattenR / robot.js
Created December 7, 2012 17:30
PatBotV2
var cloned = false;
var C = false;
var first = true;
function Robot(robot) {}
// well, we need to do something...
// whenever our robot is idle, this method gets called.