June 22, 2013 | Python |
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:
Need help with a hardware project or product? Drop us an email at email@example.com. We offer consulting services on AVR and Nordic nRF BLE - hardware design, firmware development, prototyping, PCB design/assembly, sourcing and manufacturing. We can help you bring your product to market!
We love hearing from our readers. Email us at firstname.lastname@example.org for questions or comments on this article. If you found this article useful, please support us by buying some of our hardware products.