Skip to content

Instantly share code, notes, and snippets.

View 1000i100's full-sized avatar

Millicent Billette 1000i100

View GitHub Profile
@1000i100
1000i100 / robot.js
Created December 7, 2012 14:22 — forked from f6p/robot.js
NecroBadger-fork
// helpers
function areEnemies(robot, sighted) {
var sightedIsChild = (robot.id == sighted.parentId);
var sightedIsParent = (robot.parentId == sighted.id);
return !(sightedIsChild || sightedIsParent);
};
function baseStep(robot) {
@1000i100
1000i100 / robot.js
Created December 7, 2012 14:20
Zolmeister-fork
var robots = new Array();
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.start = function( ev ){
@1000i100
1000i100 / robot.js
Created December 7, 2012 14:18 — forked from jaskolek/robot.js
jaskolek-fork
var robots = new Array();
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.start = function( ev ){