Skip to content

Instantly share code, notes, and snippets.

View jpospychala's full-sized avatar

Jacek Pospychala jpospychala

View GitHub Profile
@jpospychala
jpospychala / robot.js
Created December 6, 2012 10:56 — forked from randompast/robot.js
my2
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
robot.clone()
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
if(robot.parentId) {
robot.turn(1);