(set: $hasKey to false)
You are in a room. You need to get out. You see a door
[[open the door->openDoor]]
[[search the room->searchRoom]](if: $hasKey)[
You insert the key, and the door gently opens
[[open the door->win]]
](else:)[
You try to open the door, but it does not budge.
[[Maybe you should look around->searchRoom]]
]
You look around the room. You see:
[[a chest->chest]]
[[a rug->rug]]
[[a shelf->shelf]]You win the game!
[[Start again?->start]]
You open the chest and it explodes in your face.
Guess you aren't leaving the room - ever.
[[start over->start]](set: $hasKey to true)
It's a very ordinary-looking rug. Nothing special about it at all.
But then you notice a very subtle lump under the rug. You lift it up gently and find a key! I wonder if this fits the door?
[[go back to the door->openDoor]]It's a shelf. Nothing on it at all.
I guess this was a waste of time
[[check the rest of the room->searchRoom]]