Linux Format

Developing Noughts and Crosses in Python

OUR EXPERT

Calvin Robinson is a former assistant principal and computer science teacher with a degree in computer games design and programming.

During this series of tutorials we’ve been using Python to develop a range of retro video games. Python is an incredibly versatile high-level programming language with a relatively simple syntax; it suits our needs.

Over the past few issues we’ve built a lunar space module landing game, a side-scrolling platformer, Pac-Man, the Game of Life and a 2D shooter. This issue we’ll build a very recognisable minigame, with challenges for those who want to take things a step further.

Before we begin, we’ll need to make sure we have the latest version of Python 3 installed. For everyone running a Debian-based distro this is as simple as sudo apt-get install python3 , after a brief sudo apt-get update , of course.

The beauty of Python is that we can use any text-based editor to work in: , , and so on.

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format10 min read
Answers
I was originally using the Cinnamon version of Linux Mint 21.3. I heard good things about MATE, so I did a new installation to try out MATE. After several months, I decided that I would like to go back to Cinnamon. I am not sure how to switch back wi
Linux Format2 min read
Suitability For Beginners
These distros are focused on a technical area of computer use, penetration testing, but that doesn’t mean they’re T not suitable for beginners in this discipline. It’s not much of a surprise that a Gentoo-based distro like Pentoo is more complicated
Linux Format11 min read
Enhance Email With A Better Thunderbird
Think email client and the obvious example is Mozilla’s Thunderbird. But whether you’re a T long-time Thunderbird user or looking for a new email client, you may find that Betterbird is – if you’ll excuse the pun – a better fit. That’s particularly t

Related