function Mind() { // Optional functions: // The following 3 function declarations are optional. // If not declared, either nothing happens, or, if a return is expected, return is taken as 0. this.newRun = function() { }; this.getAction = function ( state ) // State format is defined by each World. { return ( action ); // Action format is defined by each World. }; this.endRun = function() { }; }