It's Sean!

UK freelance journalist, author
and writer Sean McManus

Printed from © Sean McManus.
Home > Articles > Science & Technology > Conway's game of Life

Conway's game of Life

Now you can play Conway's Game of Life in your browser using a program written by Sean McManus

The game of Life was developed by John Conway of Cambridge University and goes back over thirty years. It's a model for a simple ecosystem, but its basic rules give rise to surprising complexity.

The world is divided into squares which can be vacant or occupied by cells. With each passing generation, some cells will survive while others die. Cells can be born in empty spaces.

A cell's destiny is governed by how many neighbours it has:

Example evolution

This arrangement is stable. It doesn't lead to any births or deaths:

Screenshot of stable life system

But if we introduce just one cell inside the top right corner of the 'circular' structure, it starts changing. After two generations, it looks like this:

Screenshot after two generations

After four generations, it looks like this:

screenshot after four generations

After six generations, it looks like this:

screenshot after six generations

It evolves for about twenty generations in all before settling down to a new stable pattern with fewer cells, which looks like this:

Screenshot of new stable pattern

Example glider

There are many shapes that appear to crawl across the area. Here's one:

Screenshot of glider

You can find more examples of gliders and stable shapes by following the links below, but you might want to discover some for yourself first.

Play Conway's game of Life online

I've created a version of Life for you to play on this website. It opens in a new window. To play, move the mouse over the play area and click to add or remove a cell. Press the 'generate' button to evolve one generation. You can add and remove cells at any time.

Related links

Books by Sean McManus

Scratch Programming in Easy Steps

Scratch Programming in Easy Steps

Raspberry Pi For Dummies

Raspberry Pi For Dummies

Learn to program with the Scratch programming language, widely used in schools and colleges.

Set up your Pi, master Linux, learn Scratch and Python, and create your own electronics projects.

Coder Academy

Coder Academy

Cool Scratch Projects in Easy Steps

Cool Scratch Projects in Easy Steps

Learn to make games and other programs in Scratch 2.0, and make a web page in HTML, with this highly interactive book for 7-10 year olds.

Discover how to make 3D games, create mazes, build a drum machine, make a game with cartoon animals and more!

More books

Recommended articles

Stylised coloured photo of a synth

Discover my music and home recording articles

Interested in starting home recording? Follow me as I start recording, using instruments such as the Novation MiniNova and Korg Kaossilator, and share my synth and sample-based music online.

Scratch cat and rainbow circle

10-block demos for Scratch programming

Lots of people of all ages are learning to program with Scratch. Discover some useful tricks and techniques in my 10-block Scratch demos, including special effects you can drop into your games.

Paper Raspberry Pi case

Download free book chapters and more!

Download a free case for your Raspberry Pi, and free chapters from my books about the Raspberry Pi, Scratch, web design and more!

©Sean McManus.