Conway’s Game of Life – Flash/AS3

July 10th, 2009

Hello! You’ve found the EddyB.co.uk blog! This is where I’ll be posting works in progress, design experiments, flash doohickeys and other stuff I think you might find interesting. Let’s get off to an ambitious start by creating some life…

I’ve had some experience in the past with creating and experimenting with cellular simulations, so I decided to recreate John Conway’s Game of Life using Flash CS4 and Actionscript 3. I created a couple of classes for this project -a cell class specifically created for this simulation (and only this simulation – it’s very specifically customised), and a custom button class for general use in other projects.

I’ve seen other implementations of the Game of Life online, but they’ve all been a bit fiddly when it comes to creating custom scenarios. I decided to make it a bit easier to create patterns, so rather than just loading predefined ones or toggling individual cells, you can pick one of a few classic archetypes  and position them in the grid on the fly.

The button controls are pause toggle, generation increment, slow down, speed up, and clear grid.

Leave a Reply