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 Format3 min read
AMD Ryzen 5 8600G
Socket: AM5 Arch: Zen 4 (Phoenix) Process: TSMC 4nm FinFET Cores: 6 Threads: 12 Cache: 384KB L1, 6MB L2, 16MB L3 Speed: 4.3GHz (5.0GHz boost) Unlocked: Yes GPU: Radeon 760M GPU clock: 2.8GHz Compute: 8 units AI: Ryzen AI, 16 TOPS Display: Up to 4, DP
Linux Format5 min read
Tips For Managing Docker Containers
Everyone knows how containers revolutionised application building and deployment. Using a E disposable stack of containers that make up an app that aren’t using the docker-compose command to manage the stack are missing a trick. It allows the shippin
Linux Format2 min read
Patool
Version: 2.2.0 Web: https://wummel. github.io/patool/ TAR, TAR.GZ, ZIP and 7ZIP are just some of the endless list of archiving formats you’ll run into on a fairly regular basis on the Linux desktop. What makes working with them even more complicated

Related