As in text adventures? If so, I could probably give you a key for a commented example.