Pre-release
AdventureJS Docs Downloads
Score: 0 Moves: 0
// getLastTurn.js

(function () {
  /*global adventurejs A*/

  var p = adventurejs.Game.prototype;

  /**
   * Convenience method to get this turn's input.
   * @method adventurejs.Game#getLastTurn
   * @memberOf adventurejs.Game
   * @returns {Object}
   */
  p.getLastTurn = function Game_getLastTurn() {
    return this.parser.input_history[1];
  };
})();