I like it. It's clean and concise.
I just don't know how to implement it so that its functionable.
Can you give me an overview of how to do this? I want to create a text based game with a map similar to A Dark Room. I just don't know how to go about it.