Skip to content

Instantly share code, notes, and snippets.

@jhonatanluiz
jhonatanluiz / robot.js
Created December 10, 2012 11:08
#IROMAN
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
console.log("Jhonatan Fede!");
robot.fire();
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
@jhonatanluiz
jhonatanluiz / robot.js
Created December 10, 2012 11:08
#IROMAN
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
console.log("Jhonatan Fede!");
robot.fire();
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;