/cellular-automata

A simple cellular automaton written in Python

Primary LanguagePython

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.


Details

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

Installation

  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
    

Demo

(with random initialization)

A demo of it in action