Skip to content

Instantly share code, notes, and snippets.

View tmazur's full-sized avatar

Tomasz Mazur tmazur

View GitHub Profile
@tmazur
tmazur / robot.js
Created December 5, 2012 09:18
Zolmeister
var Robot = function(robot){
robot.turnLeft(robot.angle % 90);
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
if (robot.parentId) {
robot.ahead(1);
robot.turnGunRight(1);
}
else {