My implementation of Conway's Game of Life using Python and matplotlib
for the animation.
$ ./game-of-life.py [-x <grid-size-x>] [-y <grid-size-y>] [-i <initial-state>] [-s <animation-speed>]
A few initial states are included, which can be specified using the -i
option:
random
: Fill the grid randomly with live and dead cells.rpentomino
: The R-pentomino, a well known "methuselah" seed pattern.diehard
: The Diehard seed pattern, which disappears after 130 generations.