Skip to content

Instantly share code, notes, and snippets.

View grom44's full-sized avatar

Sebastian Siadek grom44

View GitHub Profile
@grom44
grom44 / robot.js
Created December 9, 2012 12:29 — forked from KimiTang/robot.js
ShenWei
//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.turn(30);
@grom44
grom44 / robot.js
Created December 9, 2012 02:27
Zolmeister
var robots = new Array();
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.start = function( ev ){
@grom44
grom44 / robot.js
Created December 6, 2012 20:24
TONY'S BOT
//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);
robot.back(100);
@grom44
grom44 / robot.js
Created December 6, 2012 20:23 — forked from pawel-dubiel/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();
};
@grom44
grom44 / robot.js
Created December 6, 2012 20:21
Grom_test_robot
//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.rotateCannon(5);