### electronut Labs

Cool Hardware & Awesome Projects for Makers worldwide.

# A simple Python matplotlib implementation of Conway's Game of Life

I was recently reading about Conway's Game of Life - a cellular automaton discovered by British mathematician John Conway in 1970. Using 4 simple rules, his system creates complex patterns as it evolves over time. You can read more about this here.

I took a crack at implementing this in Python, using matplotlib to plot the system as it evolves. Note that there are much better optimized ways of doing this, and a lot of mind-bogglng research has been done in this area. But still, I found it fun to implement this, and it's fascinating to stare at the screen as patterns like gliders and blinkers evolve and disappear.

Here is the Python code:

## Support electronut.in

Generating original content for electronut.in takes up a lot of my time and monetary resources. If you found this article useful, please consider making a small donation. This will help me maintain electronut.in as a high quality Ad-free website.

 Donate ♥ $5.00 USD ♥ ♥$10.00 USD ♥ ♥ ♥ \$15.00 USD