Intelligent Hinting
version 5 by Aaron Reed
Chapter - Puzzle Debugging - Not For Release
Puzzle debugging is an action out of world applying to one topic. Understand "puzzle [text]" as puzzle debugging. Understand "puzzle" as a mistake ("[puzzle-debug-explanation]"). To say puzzle-debug-explanation: say "-- Type PUZZLE SELECTION to show info on why certain tasks are selected as the next action[line break]-- Type PUZZLE INFERENCES to show detail on inferred actions resulting from tasks[line break]-- PUZZLE ALL shows both of the above plus more detailed information[line break]-- PUZZLE CHANGES notifies you when any tasks become solved or unsolved[line break]-- PUZZLE LIST shows the current puzzle tree for Winning-The-Game[line break]-- PUZZLE OFF turns off puzzle debugging information."
After reading a command:
if the player's command includes "puzzle":
if the player's command includes "off":
now puzzle-debug-status is 0;
otherwise if the player's command includes "selection":
now puzzle-debug-status is 1;
otherwise if the player's command includes "inferences":
now puzzle-debug-status is 2;
otherwise if the player's command includes "changes":
now puzzle-debug-status is 3;
otherwise if the player's command includes "all":
now puzzle-debug-status is 4;
unless the player's command matches "puzzle" or the player's command includes "list", say "(Puzzle debug status is now [if puzzle-debug-status is 1]show selection info[otherwise if puzzle-debug-status is 2]show inferences info[otherwise if puzzle-debug-status is 3]showing changes info[otherwise if puzzle-debug-status is 4]showing all info[otherwise]off[end if].)".
Intelligent Hinting ends here.