Volume 4 - Debugging (not for release)
Book 1 - Object Response Tests
Include Object Response Tests by Juhana Leinonen.
[remove tests for actions that are disabled in this story]
When play begins:
remove the test burning rule;
remove the test kissing rule;
remove the test buying rule;
remove the test waving rule;
remove the test setting to rule;
remove the test swinging rule;
remove the test squeezing rule;
remove the test looking under rule;
remove the test pushing to rule;
remove the test rubbing rule;
remove the test tasting rule.
This is the test applying to rule:
let the target be a random visible thing that is not the noun;
announce tests for "applying [the noun] to [the target]";
try applying the noun to the target.
This is the test loosening with rule:
let the tool be a thing;
if the player is carrying the monkey wrench:
now the tool is the monkey wrench;
otherwise:
now the tool is a random visible thing that is not the noun;
announce tests for "loosening [the noun] with [the tool]";
try loosening the noun with the tool.
This is the test playing rule:
announce tests for "playing [the noun]";
try playing the noun.
This is the test repairing rule:
announce tests for "repairing [the noun]";
try repairing the noun.
This is the test washing with rule:
let the tool be a thing;
if the player is carrying the sanitary napkin:
now the tool is the sanitary napkin;
otherwise:
now the tool is a random visible thing that is not the noun;
announce tests for "washing [the noun] with [the tool]";
try washing the noun with the tool.
This is the test watering with rule:
let the spring be a thing;
if the player can see the koi pond:
now the spring is the koi pond;
otherwise if the player can see the bottle of gin:
now the spring is the bottle of gin;
otherwise:
now the spring is a random visible thing that is not the noun;
announce tests for "watering [the noun] with [the spring]";
try watering the noun with the spring.
Table of analyzing actions (continued)
topic | testing rule | |
"applying to" | test applying to rule | |
"loosening with" | test loosening with rule | |
"playing" | test playing rule | |
"repairing" | test repairing rule | |
"washing with" | test washing with rule | |
"watering with" | test watering with rule |