Skip to content

Instantly share code, notes, and snippets.

View baptistedeleplace's full-sized avatar

Baptiste Deleplace baptistedeleplace

View GitHub Profile
@baptistedeleplace
baptistedeleplace / robot.js
Created December 6, 2012 17:17
GunpowderBot
//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(50);