Skip to content

Instantly share code, notes, and snippets.

@stephen-uac
stephen-uac / robot.js
Created December 19, 2012 16:05
totov
//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;
@stephen-uac
stephen-uac / robot.js
Created December 19, 2012 15:54
totov
//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(360);