Skip to content

Instantly share code, notes, and snippets.

@eterror
eterror / robot.js
Created December 4, 2012 22:23 — 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) {
@eterror
eterror / robot.js
Created December 4, 2012 22:22 — 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) {
@eterror
eterror / robot.js
Created December 4, 2012 22:06
Zolmeister
//FightCode can only understand your robot
//if its class is called Robot
var go=120;
var Robot = function(robot) {
};
@eterror
eterror / robot.js
Created December 4, 2012 21:41 — 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;
@eterror
eterror / robot.js
Created December 4, 2012 21:40 — 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()
};
@eterror
eterror / robot.js
Created December 4, 2012 21:37 — forked from pawel220/robot.js
niszczycile
//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;
@eterror
eterror / robot.js
Created December 4, 2012 21:03
TERROR
//TERROROBOT by Solaris (POLAND!)
//
// under construction.
var Robot = function(robot) {
var kierunek = 1;
};
Robot.prototype.onWallCollision = function(ev) {