Skip to content

Instantly share code, notes, and snippets.

View paulovianna's full-sized avatar

Paulo Henrique Vianna paulovianna

  • Universidade Federal de Santa Maria
  • Frederico Westphalen, RS, Brasil
View GitHub Profile
//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);