Skip to content

Instantly share code, notes, and snippets.

View freitass's full-sized avatar

Leandro Freitas freitass

  • Royal Philips
  • Montréal
View GitHub Profile
#!/bin/sh
#
# a simple way to parse shell script arguments
#
# please edit and use to your hearts content
#
ENVIRONMENT="dev"
@freitass
freitass / robot.js
Created December 6, 2012 22:26
Russian Roulette
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
robot.clone();
robot.turn(180);
robot.rotateCannon(-90);
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
@freitass
freitass / robot.js
Created December 5, 2012 15:07 — forked from Shipow/robot.js
Shipow#001
var Robot = function(robot) {
robot.rotateCannon(-90);
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead();
//i'll add a clone but i need to refactor collision
//robot.clone();
};