Linux Format

Recreate the famous Game of Life

Everyone loves 2D cellular automaton, to explore this exciting subject we’re going to use Game of Life as our working example. This isn’t to be confused with The Game of Life, the family board game that was first produced in 1960 and is still going strong today. So, let’s begin by explaining how Game of Life the non-board game edition works! Before we start you can get the code packs for this tutorial from the LXF Archive here: https://bit.ly/lxf284code.

Game of Life doubles up as both a programming exercise and an introduction to theoretical mathematics and computer science (don’t let that put you off! – Ed), but in this tutorial we’re only dealing with the former. Although it might not seem it, the game is Turing Complete, which means that its data manipulation rules can be used to simulate a Turing Machine (see LXF271). We’ll look at this in more detail later in the article.

can have various states, depending on the initial state of the board. Given an initial state, doesn’t require any extra input from the user. Put simply, once it has an initial state, can operate on its own with the help of its rules.

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

More from Linux Format

Linux Format1 min read
Kaki Pi
Another Pi-like SBPC appears! From Yuridenk-Shokai in Japan, this packs a Renesas RZ/V2H Coretex-A55/R8/M33 MPU with 80 TOPS of AI. It’s aimed at robotics and has four CSI video inputs along with a PCIe 3 connection. Find out more in Japanese: www.ka
Linux Format11 min readInternet & Web
Ultra-smooth Home Game Streaming
Credit: https://moonlight-stream.org, https://github.com/LizardByte Michael Reed is a consummate Linux professional who has been moonlighting for us so that he can live in the sunshine. (are we actually paying for these gags?–Ed) You can install the
Linux Format1 min read
Nvidia Moves To Block ZLUDA
As more and more applications rely on the combination of Nvidia and CUDA, it was inevitable that third-parties would try to build on their success. There’s already examples of this, such as ZLUDA, a drop-in replacement for CUDA. The implications of

Related