Tea and Toast — 5 of 31

Maria del Pangolin

Release 1

Section - The Toaster

The description of the toaster is "There's something cheerful about its rounded corners; it's like a metal oblong gumdrop[if the toaster is switched off]. Its lever is up[end if][if the toaster is switched on and something is in the toaster]. [A list of things in the toaster] [is-are of toaster contents] toasting in it[otherwise if something is in the toaster]. [A list of things in the toaster] [is-are of toaster contents] in it[end if]."

To say is-are of toaster contents:

if the number of things in the toaster is 1:

say "is";

otherwise:

say "are". [i for one welcome our new adaptive text overlords.]

Understand "lever" as the toaster.

Instead of pushing the toaster: try switching on the toaster.

Instead of pushing the toaster to down: try switching on the toaster. [This catches "push lever down."]

Instead of pushing the toaster to up: try switching off the toaster. [And this catches "push lever up."]

Report inserting a bread slice into the toaster: say "[one of]You jam the bread into the toaster. A few crumbs flake off[or]You slide [the noun] into the toaster[stopping]." instead.

Check inserting something into the toaster when the noun is not a bread slice: say "You can only toast bread in the toaster." instead.

Check switching on the unplugged toaster: say "The lever refuses to catch; the toaster isn't plugged in." instead.

Check switching on the toaster when the toaster contains nothing: say "There's nothing to toast in there." instead.

After switching on the toaster: say "The lever slides down with a satisfying click, and the bread retreats to within the toaster."

Carry out switching on the toaster: the toast pops in four minutes from now.

At the time when the toast pops:

say "The toast pops up with a ding!";

now every bread slice in the toaster is toasted;

now the toaster is switched off.

Check removing something from the switched on toaster:

say "Your mother told you never to stick your fingers in the toaster. About this one thing you have always listened to her." instead.

Check inserting a bread slice into the switched on toaster: say "You'll have to wait until the toaster pops." instead.

Check switching off the toaster: say "Oh, there's no call to interrupt a good toast." instead.

Check taking the toaster: say "No need to move the toaster." instead.

Check switching on the toaster when a toasted bread slice is in the toaster: say "The toast is done already! You don't want to burn it." instead.

Definition: a bread slice is toastered rather than untoastered if it is in the toaster.

Before inserting a toastered bread slice into the toaster when an untoastered bread slice is visible:

if an untoasted untoastered bread slice (called raw) is visible:

try inserting raw into the toaster instead;

otherwise:

say "It looks like all the slices of bread you've cut either are toasted or already in the toaster!" instead.