Intelligent Hinting

version 5 by Aaron Reed

  • Home page
  • Beginning
  • Previous
  • Next



  • Chapter - Tasks


    A task is a kind of thing. A task is usually privately-named. [A task is the atomic unit of a puzzle, and consists of a series of actions, which sometimes must be performed at a certain spot or under certain conditions. Tasks are marked complete by hand.]

    A task has an object called the venue. The venue of a task is usually nothing. [The venue is the room we must be in before attempting to perform the actions in this task. Why an object and not a room? Because we can't have a null value for a room, which we need in case a puzzle requires no location.]

    A task has a list of stored actions called the action-sequence. A task has a number called the action-position. [The action-sequence stores the actions, in order, that must be taken to complete this task. action-position keeps track, from turn to turn, of where we are in this sequence. Normally, authors will use the "do the action of..." procedure for modifying this list. ]

    A task has a list of indexed texts called the command-sequence. [For specific strings to be input which cannot be represented by stored actions.]

    A task has a list of objects called the apropos-list. [Either rooms or things not mentioned in the action-sequence which are nevertheless related to that task. Useful in not sequential puzzles to help the extension guess which puzzle the player is currently working on.]

    A task can be reversible or irreversible. A task is usually irreversible. [A reversible task is eternally complete once it is marked as such; an irreversible task's definition is checked every turn.]

    The red flag rules are an object-based rulebook. [Can prevent a task from being attempted until a certain condition is met.]