Skip to content

Instantly share code, notes, and snippets.

View folkien's full-sized avatar
🇺🇦
Stop Russia Ukraine invasion!

Sławomir Paszko folkien

🇺🇦
Stop Russia Ukraine invasion!
View GitHub Profile
@folkien
folkien / robot.js
Created December 7, 2012 00:06 — forked from jaskolek/robot.js
jaskolek
var robots = new Array();
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.start = function( ev ){
@folkien
folkien / robot.js
Created December 4, 2012 21:18 — forked from AndreMeira/robot.js
Fight me if u can?
var direction;
var start;
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
direction = 1;
start = 0;
robot.clone();
@folkien
folkien / robot.js
Created December 4, 2012 18:42 — forked from cezarsa/robot.js
Folkien WTF
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) {
@folkien
folkien / robot.js
Created December 4, 2012 17:16 — forked from fabiopimentel/robot.js
Folkien MGR
//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();
@folkien
folkien / robot.js
Created December 4, 2012 17:14 — forked from fabiopimentel/robot.js
[CAELUM TEAM]Megatron
//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();
@folkien
folkien / robot.js
Created December 4, 2012 16:48
Folkien PUS
var start;
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
robot.clone();
start = 0;
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
@folkien
folkien / robot.js
Created December 4, 2012 04:51 — forked from icaromedeiros/robot.js
Folkien TTW
var Robot = function(robot){
robot.clone();
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(10);
@folkien
folkien / robot.js
Created December 4, 2012 04:23 — forked from sinbonders/robot.js
Folkien TTC
var cloned;
var direction;
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
cloned = 0;
direction = 1;
};
Robot.prototype.onIdle = function(ev) {
@folkien
folkien / robot.js
Created December 4, 2012 03:52
Folkien TT2
var direction;
var start;
var runaway;
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
if(robot.parentId){
direction = 1;