Intelligent Hinting

version 5 by Aaron Reed

  • Home page
  • Beginning
  • Previous
  • Next



  • Book - Bookkeeping Routines

    Chapter - Keeping Track of Player's History

    The list of in-focus items is a list of things that varies. [We store the last ten objects the player has interacted with, to consult and get a sense of what the player is currently concerned with.]

    Every turn (this is the Intelligent Hinting note the player's action rule):
        truncate the list of in-focus items to the last 9 entries;
        if current action is suggesting or current action is solving:
            unless noun part of relevant action is nothing or noun part of relevant action is a direction:
                add noun part of relevant action to the list of in-focus items;
            unless second noun part of relevant action is nothing or second noun part of relevant action is a direction:
                add second noun part of relevant action to the list of in-focus items;
        otherwise:
            unless noun part of current action is nothing or noun part of current action is a direction:
                add noun part of current action to the list of in-focus items;
            unless second noun part of current action is nothing or second noun part of current action is a direction:
                add second noun part of current action to the list of in-focus items.

    The list of stored venues is a list of rooms that varies.

    Every turn (this is the Intelligent Hinting note player's location rule):
        truncate the list of stored venues to the last 9 entries;
        add location to the list of stored venues, if absent.

    The saved endeavor is an object that varies. [This can be a puzzle or a task.]