Dev Works

Conway's Game of Life

A classic cellular automaton devised by British mathematician John Conway, implemented in JavaScript

0 claps earned
Conway's Game of Life




Design, development

built with

Vanilla JavaScript for logic, and React/Gatsby for scaffolding with styled-components for styling


After reading John Maeda's blog article “Life is just a big math problem,” I felt inspired to implement this mathematical simulation on my own. It turned out to be a good, fun JavaScript exercise for handling 2-dimensional matrices, and I felt pretty good about the result.

Key Features

  • Fundamental game logic by John Conway

  • Loading pre-defined patterns


  • Consider using canvas rather than divs to render the grid

  • Allow users to generate and save their own patterns, and have it persist between sessions

Clap a few times
if you liked it
© 2022 by Bumhan Yu