[Game Introduction] The Structure of the Classic Zork, the Pioneer of Adventure Games

The link below explains how the classic text adventure game Zork constructed its game environment and parsed and processed commands input by humans in the verb-object-means format.

All locations and items are OBJECT objects. An OBJECT object has properties: name, parent object, alias, description, modifier, positional relationship, flags, action definitions for possible interactions (and size, capacity, etc. if needed).

Both the text describing the scene and the response text to interaction attempts automatically generate and output sentences using the properties of OBJECTs.

[Analysis Article] Zork: The Great Inner Workings