Skip to content

Instantly share code, notes, and snippets.

View franz-see's full-sized avatar

Franz Allan Valencia See franz-see

View GitHub Profile
@franz-see
franz-see / robot.js
Created December 6, 2012 09:51
MegaMan
//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);
@franz-see
franz-see / robot.js
Created December 6, 2012 09:52
PyBot
//FightCode can only understand your robot
//if its class is called Robot
Rvar Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(100);
com = typeof(com) !== 'undefined' ? com : {};
com.pinoyjug = com.pinoyjug || {};
com.pinoyjug.JSThread = function(/* key-value constructor param */ config) {
// private
var _private_val = 5;
var _private_func = function() { ... {;
// public
return {