August 2021
Intermediate to advanced
384 pages
9h 15m
English
In this chapter, you’ll build a voice-controlled tic-tac-toe game to put all your new skills into practice. You’ll draw a game board with blue and white game pieces, disallow invalid moves, and detect if a player has won. You’ll then add the speech recognition and text-to-speech functionality and set the game so you play with your own computer.
As usual, all scripts in this chapter are available at the book’s resources page at https://www.nostarch.com/make-python-talk/. Before you begin, set up the folder /mpt/ch10/ for this chapter.
Read now
Unlock full access