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

Get Invent Your Own Computer Games with Python , 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.