Child's Play

An interactive fiction by Stephen Granade (2007) - the Inform 7 source text

Chapter 10 - Visitation, Which Puts Hooks on the Player Entering Rooms

A room has a number called visitation count. The visitation count of a room is usually 0.

Visiting is an action applying to one visible thing. Carry out visiting: if the noun is a room, increase the visitation count of the noun by 1.

The last report going rule (this is the record the player's visitation rule): try visiting the location.

The source code to Child's Play is licensed under a Creative Commons NonCommercial Sampling Plus 1.0 License.