Skip to content

Instantly share code, notes, and snippets.

@acelan
acelan / robot.js
Created December 6, 2012 09:12 — forked from cfsghost/robot.js
Frextank
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
var self = this;
self.robot = robot;
self.members = {};
self.enemies = {};
@acelan
acelan / robot.js
Created December 6, 2012 01:57 — forked from matarek/robot.js
TANKAR
//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);
if (Math.random() > 0.5) {