Section 3 - Primary win condition
after opening the front door:
Let costume be the list of uppermost garment-elements worn by the player;
repeat through the Table of Win Conditions:
if the cleanliness of the player is condition entry or the cleanliness of the player is greater than condition entry:
Let N be 0;
Repeat with thing running through items entry:
If thing is wearable:
if the thing is listed in costume, increase N by 1;
otherwise if the player is carrying thing:
increase N by 1;
if number of entries in items entry is N:
say "[paragraph break][paragraph break][bold type][Title entry][roman type][paragraph break][paragraph break][message entry]";
end the story finally saying reason entry;
rule succeeds;
stop;