Skip to content

Instantly share code, notes, and snippets.

@KimiTang
KimiTang / robot.js
Created December 8, 2012 02:54 — forked from samelinux/robot.js
Wall Killer
var Robot = function(robot) {
robot.rotateCannon(180);
};
Robot.prototype.onIdle = function(ev) {
ev.robot.back(30);
};
Robot.prototype.onScannedRobot = function(ev) {
ev.robot.fire();
//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();
@KimiTang
KimiTang / robot.js
Created December 7, 2012 07:23
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);