Skip to content

Instantly share code, notes, and snippets.

@Walko
Walko / robot.js
Created December 4, 2012 14:58
MONSTERKILL
//FightCode can only understand your robot
//if its class is called Robot
var go=120;
var Robot = function(robot) {
};
@Walko
Walko / robot.js
Created December 4, 2012 14:13 — forked from mwclarkson/robot.js
Version 4
//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);
@Walko
Walko / robot.js
Created December 4, 2012 13:34
Sperminator
//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(1);