An engine for a text based RPG