Skip to content

Instantly share code, notes, and snippets.

@yuyi
yuyi / robot.js
Created December 6, 2012 07:58
OPENROBOT
function Robot(robot) {
this.dd = false;
}
// well, we need to do something...
// whenever our robot is idle, this method gets called.
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;