Skip to content

Instantly share code, notes, and snippets.

@willyph
willyph / robot.js
Created December 6, 2012 17:17 — 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 ){
@willyph
willyph / robot.js
Created December 6, 2012 17:16 — forked from TheMikitu/robot.js
RubberDick
//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);
@willyph
willyph / robot.js
Created December 3, 2012 18:06
Tester
//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(10);
@willyph
willyph / robot.js
Created December 3, 2012 17:54
Curly & Moe
//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(200);