"Portable Light (flashlight device)" by John Timmons
The story headline is "Creating Portable Lights to Illuminate a Dark Room." The story description is "This is a very common and simple example of how to create a portable light source that can be carried by the player to provide light in dark rooms."
Release along with the source text and a website.
Use full-length room descriptions, American dialect, the serial comma, and no scoring.
[This is our starting room.]
The Foyer is a room. "A barren room. There is an exit to the north."
[We create a device called a flashlight and locate it in the Foyer.]
A flashlight is a device in the Foyer.
[Switching on the flashlight gives it the lit property so it will provide light.]
Carry out switching on the flashlight:
now the flashlight is lit.
[Switching off the flashlight gives it the dark property so it will not provide light.]
Carry out switching off the flashlight:
now the flashlight is dark.[1]
[The Kitchen is a dark room.]
The Kitchen is north of the Foyer. The Kitchen is dark. "It seems like a normal kitchen now that there is some light in here."
Test me with "take flashlight / x flashlight / n / turn on flashlight / turn off flashlight".