Skip to content

Instantly share code, notes, and snippets.

@kjaku
kjaku / robot.js
Created December 7, 2012 20:57 — forked from jaskolek/robot.js
jaskolek
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 ){
@kjaku
kjaku / robot.js
Created December 7, 2012 20:57 — forked from jaskolek/robot.js
jaskolek
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 ){
@kjaku
kjaku / robot.js
Created December 7, 2012 20:13 — forked from Isinlor/robot.js
IsinBot
/*
* It would be great if you fork & upgrade
* created by; Zolmeister
* edited by: Isinlor
* TODO; RobotCollision - it sucks
* shooting when you are next to wall and in front of enemy
*/
var count = 0;
var savedEnemyLife = 0;
var turnDirections = 1;
@kjaku
kjaku / robot.js
Created December 7, 2012 20:06 — forked from Isinlor/robot.js
hmm
/*
* It would be great if you fork & upgrade
* created by; Zolmeister
* edited by: Isinlor
* TODO; RobotCollision - it sucks
* shooting when you are next to wall and in front of enemy
*/
var count = 0;
var savedEnemyLife = 0;
var turnDirections = 1;
@kjaku
kjaku / robot.js
Created December 4, 2012 17:46 — forked from jaskolek/robot.js
jaskolek
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
this.stepFn = this.goToWall;
this.roundCount = 0;
};
Robot.prototype.moveCannonToCenter = function( ev ){
var robot = ev.robot;
@kjaku
kjaku / robot.js
Created December 4, 2012 17:15
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()
};
@kjaku
kjaku / robot.js
Created December 4, 2012 16:48 — forked from patwork/robot.js
klon
//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();
@kjaku
kjaku / robot.js
Created December 4, 2012 16:22
xxx
//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();
robot.rotateCannon(360);
robot.ahead(80);
@kjaku
kjaku / robot.js
Created December 4, 2012 16:01 — forked from fabiopimentel/robot.js
Bubu
var Robot = function(robot) {
// var robot = ev.robot;
}
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.clone();
robot.rotateCannon(360);
robot.turn(360)