Skip to content

Instantly share code, notes, and snippets.

@codecleaner
codecleaner / robot.js
Created December 6, 2012 23:22 — forked from code4free/robot.js
myhiperdupersuper
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
this.id = robot.id;
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
//robot.clone();
@codecleaner
codecleaner / robot.js
Created December 6, 2012 17:08 — forked from jaskolek/robot.js
jaskolek
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 ){
@codecleaner
codecleaner / robot.js
Created December 6, 2012 17:07
Lilium
//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);
@codecleaner
codecleaner / robot.js
Created December 6, 2012 17:07
Lilium
//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);
@codecleaner
codecleaner / robot.js
Created December 6, 2012 16:58
Codie
//FightCode can only understand your robot
//if its class is called Robot
myWait = 0;
myDirCounter = 0;
direction = 1;
canRotate = 1;
cantFind = 0;
var Robot = function(robot) {