I was a child when Space Invaders came out in 1978 and I can still remember playing it at the bar my dad used to frequent, the Conewago Inn. Space Invaders is one of the classic arcade games, along with Pacman, Donkey Kong, Frogger and other games of that era. It is also one of the simplest and a good candidate for a tutorial.
As you learn more about coding, you will find that you will be using and reusing code. Rather than writing the code out again and again and again, you can create functions. The Webopedia defines a function as "a named section of a program that performs a specific task."
Python is a great language and there are a lot of resources on the Internet about how to program Python. One thing I find is that a lot of so-called "beginner" tutorials are actually pretty complicated. In particular, I set out to learn a little bit about GUI programming using Tkinter and found the explanations and examples pretty difficult to follow. So, I decided to create my own to share.
Tic-Tac-Toe is one of the earliest strategy games that children learn. It has few rules that are easy to grasp which makes it an excellent game to use to learn how to program in Python. In this tutorial, I will walk you through the process of making the game in a step-by-step fashion. This tutorial presupposes that you have at least a passing familiarity with Python concepts such as loops, functions, and lists.
Recent blog posts
- Simple Python Game Tutorial Using Classes
- Video Tutorial: Python Spacewar Game
- Video Tutorial: Python To-Do-List (GUI Version)
- Video Tutorial: Simple Space Invaders Clone
- Video Tutorial: Python Functions with Turtle Graphics
- Video Tutorial: Python Guessing Game (GUI Version)
- Global Codeathon Scratch Tutorials
- Video Tutorial: A Simple Python Turtle Graphics Game
- Video Tutorial: Tic-Tac-Toe in Python
- In Favor of Standardization in Ed Tech