Skip to content

Instantly share code, notes, and snippets.

@ksipe
ksipe / robot.js
Created December 7, 2012 20:30
Ksipe2
//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.turn(270 - robot.angle);
robot.ahead(1000);
@ksipe
ksipe / gist:4207527
Created December 4, 2012 19:02 — forked from randompast/robot.js
QR-bot-009
We couldn’t find that file to show.
@ksipe
ksipe / robot.js
Created December 4, 2012 17:35
Q
//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(8);
@ksipe
ksipe / robot.js
Created December 4, 2012 17:11 — forked from deSupermega/robot.js
DoDo
//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(50);
@ksipe
ksipe / robot.js
Created December 4, 2012 17:10 — forked from musashix90/robot.js
better robit
//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(90);
@ksipe
ksipe / robot.js
Created December 4, 2012 16:16
Xipe Totec
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(200);
robot.turn(30);
};
@ksipe
ksipe / robot.js
Created December 4, 2012 15:40
Xipe
//FightCode can only understand your robot
//if its class is called Robot
var i = 0;
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {