A text adventure engine

The problem

Build a small text adventure: rooms connected by exits, items to pick up and use, and a parser for commands such as go north, take key and use key.

Requirements

Technologies

Step by step

  1. Design the rooms, exits and items as classes and an enum.
  2. Build a small world in code and print the room descriptions.
  3. Write the command parser and each command as a method.
  4. Add items, locked exits, a win condition and tests of tricky commands.

Expected result

A playable adventure whose world can be extended without changing the engine.

How it is evaluated

Ways to improve it