Skip to content

Instantly share code, notes, and snippets.

@xiecc
xiecc / robot.js
Created December 10, 2012 13:57
xcc
//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);
@xiecc
xiecc / robot.js
Created December 10, 2012 13:57
xcc
//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);
@xiecc
xiecc / robot.js
Created December 10, 2012 13:57
xcc
//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);
@xiecc
xiecc / robot.js
Created December 10, 2012 13:57
xcc
//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);
@xiecc
xiecc / robot.js
Created December 10, 2012 13:57
xcc
//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);