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.
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.
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.
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.
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.