function Mind() { } Mind.prototype.newRun = function () { }; // State actually contains what is on the screen. state : { screen : Array(64 * 32) } Mind.prototype.getAction = function(state) { // move down for ever return [0x4];//[0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF]; }; Mind.prototype.endRun = function() { };