The best advice I can give is that this should be data driven. In other words, your code reads a data file that describes the game and then plays it. Put another way, you have to write a "text based adventure game" engine.
If you code the game directly, your program will be a giant mess of text.