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 Format1 min read
FlyOS Offers Linux Subsystem On Android
DigitalPlat, FlyOS developer, proudly announces on its main page: “Imagine coding on your phone, connecting a keyboard and mouse, and effortlessly accessing your favourite tools like LibreOffice, VSCode, GIMP, Jupyter and more. It’s a complete Linux
Linux Format1 min read
Redis Licence Drama
On 20th March 2024, Redis announced that as of version 7.4, the software will be dual-licensed under the Redis Source Available Licence (RSALv2) and Server Side Public Licence (SSPLv1). The Open Source Initiative characterises the Server Side Publi
Linux Format2 min read
Specialist Tool Organisation
K ali works differently from the others as it has the security tools in the root of the app launcher. If you know what you’re looking for, the whole thing is searchable from the launcher. The ‘normal’ apps are located in the Usual Applications folder

Related