Skip to content

Instantly share code, notes, and snippets.

@mwclarkson
mwclarkson / robot.js
Created December 3, 2012 20:28 — forked from HugoLnx/robot.js
CrazyGiroscope
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
function include(el, array) {
for(var i = 0; i < array.length; i++){
if(el === array[i]) return true;
}
@mwclarkson
mwclarkson / robot.js
Created December 3, 2012 18:37 — forked from musashix90/robot.js
Out Of Cheese Error v2.0
//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();