PROJECT PREVIEW: THE GUESS A NUMBER GAME


In this chapter, you will learn how to create a Visual Basic game called the Guess a Number game. The development of this game will provide you with plenty of 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 demonstrate 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 will display.

image from book
Figure 6.2: Once game play 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 provides players with clues to help them hone in on the answer. It also displays a running count of the number of guesses made by the player.

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.

By the time you have created and run this game, you'll have learned how to develop some fairly complicated conditional logic tests. As a result, you should be ready to move on, having laid the foundation required to understand and develop the conditional logic required to complete the game projects in the remaining chapters.




Microsoft Visual Basic 2005 Express Edition Programming for the Absolute Beginner
Microsoft Visual Basic 2005 Express Edition Programming for the Absolute Beginner
ISBN: 1592008143
EAN: 2147483647
Year: 2006
Pages: 126

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