Get the latest tech news
How to program a text adventure in C
by Ruud Helderman <r.helderman@hccnet.nl> Licensed under MIT License This is not a C tutorial; there are plenty of those on the web. The reader is assumed to have some basic knowledge of programming in general, and preferrably the C programming language in particular.
Where books survived the rise of film, text-based games quickly lost the battle against their graphical counterparts. This is also the single biggest advice I can give you if you intend to write your own adventure: use one of the many dedicated development systems. I have always admired pioneers like Scott Adams who managed to bring the adventure game genre to the early home computers, despite extreme memory constraints.
Or read this on Hacker News