Skip to content

Instantly share code, notes, and snippets.

View jkaflik's full-sized avatar

Kuba Kaflik jkaflik

View GitHub Profile
@jkaflik
jkaflik / robot.js
Created December 4, 2012 13:18
Zolmeister
//FightCode can only understand your robot
//if its class is called Robot
var go=120;
var Robot = function(robot) {
};
@jkaflik
jkaflik / robot.js
Created December 4, 2012 13:13 — 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) {
@jkaflik
jkaflik / robot.js
Created December 4, 2012 11:38 — forked from fabiopimentel/robot.js
Taka Dupa
//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();