Monday, February 5, 2007

Text Adventure Game Engine

Building on my past experience with text adventure games I created the game's engine over the weekend. To sophisticate the abilities of the game and ensure the highest quality user experience the user input is searched over for sequenced keywords and synonyms. What does this mean? Well consider this example:

You're in bed. Perhaps you should get up.

Internally there is one possible 'action' at this 'scene', but scenes can have any number of actions. The wake action has the following keyword pattern: get/wake + up where get and wake are synonyms for each other.

The user could now enter either get up or wake up.

There is a demonstration version of the engine on my tcnj website here.




No comments: