Skip to content

Instantly share code, notes, and snippets.

View Sairento-92's full-sized avatar

Jakub Bojarski Sairento-92

  • Poland
View GitHub Profile
@Sairento-92
Sairento-92 / robot.js
Created December 4, 2012 18:41 — forked from fabiopimentel/robot.js
SilentBob 2
//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();
@Sairento-92
Sairento-92 / robot.js
Created December 4, 2012 18:25
Boberczus
function Robot(robot) {}
Robot.prototype.onIdle = function(ev) {
var robot;
robot = ev.robot;
robot.ahead(130);
robot.rotateCannon(50);
robot.back(130);
robot.rotateCannon(50);
if(robot.life==100)
robot.clone()
@Sairento-92
Sairento-92 / robot.js
Created December 4, 2012 17:21
SilentBob92Pl
//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);