PROJECT PREVIEW: THE GUESS A NUMBER GAME


This chapter's project is a Visual C++ application called the Guess a Number game. By developing this game, you have several opportunities to apply your knowledge of conditional logic. Figures 6.1 through 6.4 provide a sneak preview of the Guess a Number game and give an overview of the game's overall execution.

image from book
Figure 6.1: The game begins by allowing the player to specify configuration options, including the range of numbers to pick from and the amount of information the game displays.

image from book
Figure 6.2: When gameplay starts, the player's access to the configuration options is disabled and the player is prompted to take the first guess.

image from book
Figure 6.3: The game gives players clues to help them home in on the answer. It also displays a running count of the number of guesses the player makes.

image from book
Figure 6.4: At the end of each game, the player gets a chance to modify the game's configuration options and reset the score.

After you have created and run this game, you'll have a sound foundation of how to drive your applications using sophisticated conditional logic tests. You will, as a result, be ready to begin building fairly complex programs. You will also have a better basis from which to understand the remaining programs in the coming chapters.




Microsoft Visual C++ 2005 Express Edition Programming for the Absolute Beginner 2006
Microsoft Visual C++ 2005 Express Edition Programming for the Absolute Beginner 2006
ISBN: 735615381
EAN: N/A
Year: 2005
Pages: 131

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net