Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 5. Lists and Dictionaries: The H... > Introducing the Hangman Game

Introducing the Hangman Game

The project for this chapter is the game of hangman. The computer picks a secret word and the player has to try to guess it, one letter at a time. Each time the player makes an incorrect guess, the computer shows a new image of a figure being hanged. If the player doesn’t guess the word in time, the stick figure is a goner. $$$Figures 5.1 through 5.3 show off the game in all its glory.

Not only is this game fun, but by the end of the chapter, you’ll know how to create your own version. You can have a personalized group of secret words, and even update my marginally adequate artwork.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial