12 Guess-the-Word Game

In this chapter, you’ll build a voice-controlled graphical guess-the-word game. This is an interesting challenge because when playing guess-the-word, players often talk quickly, so we’ll need to fine-tune our script’s listening abilities.

As usual, we’ll go over the game rules and draw a game board; this game board uses six coins to represent your six guesses. You’ll learn how to load a picture to a Python script and create multiple images of it onscreen. You’ll also learn to make the images disappear one by one.

We’ll start the game by using written inputs. Then, when we have it working well, we’ll add the speech ...

Get Make Python Talk now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.