Skip to content

Instantly share code, notes, and snippets.

View guilhermef's full-sized avatar

Guilherme Souza guilhermef

View GitHub Profile
@guilhermef
guilhermef / robot.js
Created November 30, 2012 01:21
Newbie
//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;
@guilhermef
guilhermef / robot.js
Created November 30, 2012 01:20
Galinho
//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.clone();
//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);
//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);
@guilhermef
guilhermef / robot.js
Created November 29, 2012 22:37
My new
//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);
@guilhermef
guilhermef / robot.js
Created November 29, 2012 12:17
Awesomeness
//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);
@guilhermef
guilhermef / robot.js
Created November 28, 2012 16:23
exterminussun do futuro
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot){
this.shouldFire = 0;
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
@guilhermef
guilhermef / robot.js
Created November 28, 2012 01:22
exterminussun do futuro
//FightCode can only understand your robot
//if its class is called robotClass
var robotClass = function(){
};
robotClass.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(100);
robot.rotateCannon(360);
@guilhermef
guilhermef / robot.js
Created November 25, 2012 19:49
teste4
//FightCode can only understand your robot
//if its class is called robotClass
var robotClass = function(){
};
robotClass.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(100);
robot.rotateCannon(360);
@guilhermef
guilhermef / robot.js
Created November 25, 2012 19:44
teste4
//FightCode can only understand your robot
//if its class is called robotClass
var robotClass = function(){
};
robotClass.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(100);
robot.rotateCannon(360);