🎮
Conway's Game of Life
An implementation of Conway's Game of Life cellular automaton, animated with matplotlib. Supports random grids as well as glider and Gosper glider…
An implementation of Conway's Game of Life cellular automaton, animated with matplotlib. Supports random grids as well as glider and Gosper glider…
An implementation of Conway's Game of Life cellular automaton, animated with matplotlib. Supports random grids as well as glider and Gosper glider gun demos via command-line flags.
python conwaygame.py --glider to open a blank grid with a single glider pattern placed at position (1, 1) and watch it travel diagonally.python conwaygame.py --gosper to start with a Gosper Glider Gun that continuously fires gliders across the grid.--grid-size 50 --interval 100 to use a smaller 50x50 grid updated every 100 ms.--mov-file output.mp4 to save the animation to a video file instead of displaying it.pip install numpy matplotlib
python conwaygame.py
Optional flags: --grid-size, --interval, --glider, --gosper, --mov-file.
numpymatplotlib