Skip to content

Instantly share code, notes, and snippets.

View rfloriano's full-sized avatar

Rafael Floriano da Silva rfloriano

View GitHub Profile
@rfloriano
rfloriano / robot.js
Created December 4, 2012 06:45 — forked from fabiopimentel/robot.js
[CAELUM TEAM]Megatron
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
var act = RobotActions;
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
@rfloriano
rfloriano / robot.js
Created December 4, 2012 21:40 — forked from olavph/robot.js
RoBoB
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
robot.clone();
};
var speed = 2;
Robot.prototype.onIdle = function(ev) {
@rfloriano
rfloriano / robot.js
Created December 10, 2012 17:50 — forked from yetanotherportfolio/robot.js
BoBot
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
var is_scanning = true;
var is_blocking = false;
var angleTarget = 0;
var lastTarget = [0,0];