Conway's Game of Life Showcase

Implementing Conway’s Game of Life has always been of interest to me since I first became aware of it. Although my early attempts worked they were slow and could not manage large grids, but then I was a novice programmer :innocent:. Since then I have created several implementations in different languages culminating 5 years ago in a fast multi-core Processing Java version.

Two months ago a forum discussion about GoL made me wonder if I could create something just as fast using p5js and JavaScript.

It has been a fascinating journey and I have had to improve many of my algorithms to reduce the computation time. The result shown below is from OpenProcessing but if you want to play with the code or create your own life-scenes then I recommend you use the version on p5js web editor. It is easy to copy if you have a free web-editor account and is fully documented with several detailed read-me files.

If you do create your own life-scenes feel free to paste a link to the sketch here. :partying_face: :smiling_face_with_sunglasses:

1 Like