Skip to content

Instantly share code, notes, and snippets.

View guilhermebruzzi's full-sized avatar
😃
Developer @ Coinbase

Guilherme Dantas Heynemann Bruzzi guilhermebruzzi

😃
Developer @ Coinbase
View GitHub Profile
@guilhermebruzzi
guilhermebruzzi / robot.js
Created December 2, 2012 17:58 — forked from heynemann/robot.js
Merry Go round
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot){
//robot.clone();
this.robotOptions = {
clone: {
canStartFight: false,
goBackOnCollision: false
@guilhermebruzzi
guilhermebruzzi / robot.js
Created December 2, 2012 15:59 — forked from heynemann/robot.js
Merry Go round
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot){
//robot.clone();
this.robotOptions = {
clone: {
canStartFight: false,
goBackOnCollision: false
@guilhermebruzzi
guilhermebruzzi / robot.js
Created December 2, 2012 15:03 — forked from cezarsa/robot.js
Simple Wall Robot
var Robot = function(robot){
robot.turnLeft(robot.angle % 90);
robot.turnGunRight(90);
robot.clone();
this.direction = 1;
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(1);
if (robot.parentId) {
@guilhermebruzzi
guilhermebruzzi / robot.js
Created December 2, 2012 14:58 — forked from heynemann/robot.js
Merry Go round
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot){
//robot.clone();
this.robotOptions = {
clone: {
canStartFight: false,
goBackOnCollision: false