9 Graphics and Animation with the turtle Module

Our goal in the next few chapters is to build voice-controlled graphical games such as tic-tac-toe, Connect Four, and guess-the-word. You’ll do all these with the turtle module.

In this chapter, you won’t be working with voice interactivity. Instead you’ll learn the turtle module’s basic commands that will let you set up a turtle screen, draw shapes, and create animations. This functionality will be the basis for all the games you’ll be building.

Before you begin, set up the folder /mpt/ch09/ for this chapter. As always, all scripts in this chapter are available at the book’s resources page, ...

Get Make Python Talk 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.