A simple cellular automaton written in Python
Switch branches/tags
Nothing to show
Clone or download
Failed to load latest commit information.
__pycache__ Now supports rules 0-255 Sep 14, 2016
Demo.gif Initial commit Sep 13, 2016
main.py Made colors more interesting Oct 4, 2016
readme.md Update readme.md Sep 21, 2016
requirements.txt Now supports rules 0-255 Sep 14, 2016


Cellular Automaton

Brahm Capoor

This is a simple Cellular Automation, inspired by this video by funfunfunction. After seeing it made in Javascript, I didn't think it was very fair to use Javascript, so I used Python instead.


  • Uses numpy matrices to represent the state of the automaton's spacetime
  • Uses matplotlib to plot and animate the automaton


  1. Download or clone the repository

  2. Make sure numpy and matplotlib are installed

  3. pip install numpy
    pip install matplotlib
  4. Run

    python3 main.py


(with random initialization)

A demo of it in action