< Previous | Contents | Next >

Introducing Lost Fortune

The final project for this chapter, Lost Fortune, is a personalized adventure game in which the player enters a few pieces of information, which the computer uses to enhance a basic adventure story. Figure 1.9 shows a sample run.

Instead of presenting all the code at once, Ill go through it one section at a time. You can download the code for this program from the Course Technology website (www.courseptr.com/downloads). The program is in the Chapter 1 folder; the filename is lost_fortune.cpp.


 

Setting Up the ProgramGetting Information from the PlayerTelling the Story