Interesting.
I recently investigated text based adventure games in Python as a possible tool to teach and evaluate outdoor wilderness safety knowledge and awareness (backpacking and overnight camping) for wilderness therapy.
While doing the research I recalled a friend showing me a text adventure game on his i386 PC. I could not understand the appeal. The possibilities the game suggested were vast, but the effective actions were unattainable--I was not able to see even the most basic level of progress before I became bored.
Now, outlining the wilderness safety "game", its obvious to me some understanding of software and programming would have made the game accessible. Then maybe a key in a room would be better understood as a metaphor of the code. In other words, a game at text level can be an attempt to model a complicated problem in an interactive program. If you can write a game where the final product is convincing (suspend disbelief), then maybe the game's model can be useful for other things. In my case instruction and evaluation of basic domain knowledge. And this level of programming awareness is useful in not getting bored (or experiencing cognitive gap between what a text implies and what the game can deliver).