Skip to content

Instantly share code, notes, and snippets.

@mynthon
mynthon / robot.js
Created December 11, 2012 21:03
DOJOBOT_0.1
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
this.state = 'procurando';
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;