PROJECT PREVIEW: THE HANGMAN GAME


In this chapter's project, you will apply your new knowledge of how to work with different types of procedures to the development of the Hangman game. Figures 8.1 to 8.7 show examples from the Hangman game, demonstrating its functionality and overall execution flow.

image from book
Figure 8.1: When first started, the game displays a graphic showing an empty hangman's gallows and a series of underscore characters representing the secret word.

image from book
Figure 8.2: As the game progresses, each correct guess is displayed at the top of the window, and a visual record of every letter guessed is displayed at the bottom of the window.

image from book
Figure 8.3: The game prevents the player from making the same letter guess more than once.

image from book
Figure 8.4: The game only permits the player to enter one letter at a time.

image from book
Figure 8.5: The game prevents the player from entering numeric input.

image from book
Figure 8.6: The game congratulates the player when the secret word has been successfully guessed.

image from book
Figure 8.7: If the player fails to guess the secret word within six guesses, the game is lost and the picture of the hangman's gallows is updated to show a full hangman image.

By the time you have created and run this game, you will have demonstrated your under standing of how to create custom Sub and Function procedures and how to use them to improve the overall organization and maintenance of your Visual Basic applications.




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