Skip to content

Instantly share code, notes, and snippets.

@Mr0ok
Mr0ok / robot.js
Created December 4, 2012 21:40 — forked from AndreMeira/robot.js
skaicoo
//FightCode can only understand your robot
//if its class is called Robot
var id;
var Robot = function(robot) {
id = this.id;
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
@Mr0ok
Mr0ok / robot.js
Created December 5, 2012 18:12 — forked from cgardner/robot.js
derp
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 {
@Mr0ok
Mr0ok / robot.js
Created December 5, 2012 18:13 — forked from Shipow/robot.js
Shipow#001
var Robot = function(robot) {
robot.rotateCannon(-90);
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead();
//i'll add a clone but i need to refactor collision
//robot.clone();
};
@Mr0ok
Mr0ok / robot.js
Created December 5, 2012 18:14 — forked from Shipow/robot.js
Shipow#001
var Robot = function(robot) {
robot.rotateCannon(-90);
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead();
//i'll add a clone but i need to refactor collision
//robot.clone();
};
@Mr0ok
Mr0ok / gist:4227042
Created December 6, 2012 18:51
MR #9
We couldn’t find that file to show.
@Mr0ok
Mr0ok / robot.js
Created December 6, 2012 19:16
MR #9
//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;
@Mr0ok
Mr0ok / robot.js
Created December 6, 2012 19:22
ILIVETWICE
//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;
@Mr0ok
Mr0ok / robot.js
Created December 6, 2012 19:31
MmmMHHmmmm
var Robot = function(robot) {
this.direction = 1;
this.found = 0;
this.speed = 3;
};
Robot.prototype.onIdle = function(ev) {
var r = ev.robot;
@Mr0ok
Mr0ok / robot.js
Created December 6, 2012 19:54 — forked from chaosu/robot.js
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 6, 2012 19:55 — forked from chaosu/robot.js
CHAOSU
//FightCode can only understand your robot
//if its class is called Robot
var go=120;
var Robot = function(robot) {
};