single

Snake Game, Episode 2: Eat the Food

Snake sees the food. Snake chases the food. Snake eats the food!

Starts

Instructor: Rebecca | Difficulty: Intermediate | Series: Snake Game

Can you use Python (and Python turtles) to build a snake game? Why, yes, you can! This series teaches you how to your own “snake” that grows longer with each apple it eats! Our slithery green python will be able to snake its way around the screen, chomping down apples, until either the screen can’t hold it anymore or it makes a wrong turn.

In this episode, you’ll learn how to spawn the snake’s favorite food - apples! Once the apple is spawned, you’ll not only find out how to feed the snake the apple, but also how to respawn the apple in a new, random location. Let’s see our snake game really start to take shape!

Before participating in the livestream or watching the archived video, be sure to follow the following checklist: