Chapter of Sweeping and Sweeping With and Sweeping It
A cleaning utensil is a kind of thing.
Sweeping is an action applying to nothing.
Understand the command "sweep" as something new.
Understand "sweep" or "sweep with the/-- broom" as sweeping.
Check sweeping:
if the player is not carrying a cleaning utensil:
say "You can't sweep without something to sweep with." instead;
Report sweeping:
say "Sweep-sweep-sweep. There, isn't it much nicer now?"
Instead of using the broom:
try sweeping.
Sweeping it is an action applying to one visible thing.
Understand "sweep [something]" as sweeping it.
Check sweeping it:
if the player is not carrying a cleaning utensil:
say "You can't sweep without something to sweep with." instead;
if the noun is the broom:
say "You can sweep something (with [the noun], for example), but you can't sweep [the noun] itself. Unless you have a second [noun]. Which isn't very likely." instead;
Report sweeping it:
say "Sweep-sweep-sweep. There, isn't it much nicer now?"
Sweeping with is an action applying to one visible thing and one visible thing.
Understand "sweep [something] with [something]" as sweeping with.
Check sweeping with:
if the second noun is not carried by the player, say "You must carry [the second noun] in order to use [them]." instead;
otherwise if the second noun is not a cleaning utensil:
say "You can't sweep with that." instead;
otherwise if the noun is a cleaning utensil:
say "You can sweep something (with [the noun], for example), but you can't sweep [the noun] itself. Unless you have a second [noun]. Which isn't very likely." instead;
Report sweeping with:
say "Sweep-sweep-sweep. There, isn't it much nicer now?"