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;
@mynthon
mynthon / robot.js
Created December 7, 2012 12:34
Mynthobot
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
this.reset()
this.retreat_time = 0;
this.track_time = 0;
this.enemy_x = 0;
this.enemy_y = 0;;