Skip to content

Instantly share code, notes, and snippets.

@Mr0ok
Mr0ok / robot.js
Created December 4, 2012 18:09 — forked from randompast/robot.js
QR-bot-009
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
var rx = robot.position.x;
var ry = robot.position.y;
var aH = robot.arenaHeight;
var aW = robot.arenaWidth;
robot.clone()
};
@Mr0ok
Mr0ok / robot.js
Created December 4, 2012 18:13 — 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();
@Mr0ok
Mr0ok / robot.js
Created December 4, 2012 18:15 — 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();
@Mr0ok
Mr0ok / robot.js
Created December 4, 2012 18:25 — 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();
@Mr0ok
Mr0ok / robot.js
Created December 4, 2012 18:25
Zolmeister
//FightCode can only understand your robot
//if its class is called Robot
var go=120;
var Robot = function(robot) {
};
@Mr0ok
Mr0ok / robot.js
Created December 4, 2012 18:39 — 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) {
@Mr0ok
Mr0ok / robot.js
Created December 4, 2012 19:47
MR 3#
var step = 50;
var rotation = 75;
var Robot = function(robot){};
Robot.prototype.onIdle = function(ev){
var r = ev.robot;
if(r.parentId!=null){
r.back(step);
@Mr0ok
Mr0ok / robot.js
Created December 4, 2012 19:56
MR #4
//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.ahead(100);
@Mr0ok
Mr0ok / robot.js
Created December 4, 2012 20:39
Zolmeister
//FightCode can only understand your robot
//if its class is called Robot
var go=120;
var Robot = function(robot) {
};
@Mr0ok
Mr0ok / robot.js
Created December 4, 2012 21:20
MR #7
//FightCode can only understand your robot
//if its class is called Robot
var found=false;
var wall=false;
var i=0;
var Robot = function(robot) {
};