Intelligent Hinting

version 5 by Aaron Reed

  • Home page
  • Beginning
  • Previous
  • Next



  • Book - Initial Setup

    Chapter - Puzzle Assocation Tables

    [When play begins, we create an index that allows us to quickly see which nouns and locations are related to which tasks. This is only useful if there are any non-sequential puzzles and we'll need to make a guess as to what is the most relevant one to tackle next. If you want to change puzzle definitions in mid-stream, you'll need to "follow the setting up puzzle association tables rule" again. ]

    When play begins (this is the setting up puzzle association tables rule):
        unless the number of not sequential puzzles is 0:
            repeat through Table of Puzzle Reference:
                blank out the whole row;
            generate puzzle lookup tables for Winning-The-Game.

    The setting up puzzle association tables rule is listed last in the when play begins rules. [This is so that actions are associated before we create our lookup tables.]

    To generate puzzle lookup tables for (problem - a puzzle):
        repeat with req running through unsolved tasks required by problem:
            repeat with step running through action-sequence of req:
                unless the noun part of step is nothing, associate noun part of step with req in candidates;
                unless the second noun part of step is nothing, associate second noun part of step with req in candidates;
            unless the venue of req is nothing:
                associate venue of req with req in candidates;
            repeat with item running through apropos-list of req:
                associate item with req in candidates;
        repeat with req running through unsolved puzzles required by problem:
            generate puzzle lookup tables for req.

    To associate (tchotchke - an object) with (req - a task) in candidates:
        if the number of blank rows in Table of Puzzle Reference > 0:
            choose a blank row in Table of Puzzle Reference;
            change item entry to tchotchke;
            change job entry to req.

    Table of Puzzle Reference
    job  item  
    a task  a thing  
    with 200 blank rows.