Find the best online courses
Back to course list
Building the Classic Snake Game with Python
  • Level: Intermediate
  • Duration: 01h 03m
  • Release date: 2021-10-21
  • Author: Robin Andrews
  • Provider: LinkedIn

Building the Classic Snake Game with Python

Description
Content

Are you looking for a fun, meaningful way to level up your Python programming skills? In this course, instructor Robin Andrews shows you how to put together what you need to know to build the Python version of a classic Snake game. Robin introduces you to turtle graphics and how you can use and control animation using Python turtle graphics. He explains global variables and shows you how to draw with turtle graphics by using stamps. With these pieces in place, it’s time to work on the game itself! Robin walks you through how to represent the snake, move it around the screen, and control the snake’s direction. He discusses the game loop that is used to control the game and also goes over how to add snake food to the game, implement a scoring system, and reset the game. Robin finishes up with advice on how to use Lambda expressions to avoid repetition in your game and some fun ways to personalize your game.