O'Reilly logo

Invent Your Own Computer Games with Python , 4th Edition by Al Sweigart

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

9EXTENDING HANGMAN

image

Now that you’ve created a basic Hangman game, let’s look at some ways you can extend it with new features. In this chapter, you’ll add multiple word sets for the computer to draw from and the ability to change the game’s difficulty level.

Adding More Guesses

After you’ve played Hangman a few times, you might think that six guesses isn’t enough for the player to get many of the words. You can easily give them more guesses by adding more multiline strings to the HANGMAN_PICS ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required