Source code
life
play Conway's Game of Life
life -help
or
life [-width integer] [-height integer] [-extra integer]
[-wrap] [-infile string] [-steps integer] [-inv]
[-mag integer] [-term string]
Simulates Conway's Game of Life with an arbitrary set of initial conditions. Input files need to be in the PBM file format.
Simulate Conway's Game of Life with an arbitrary set of initial conditions. Input files need to be in the PBM file format.
Miscellany
You will need to use the -extra option in conjuction with the -wrap option if you wish to simulate moving objects that tend to fly off in one direction. Periodic patterns may need the -extra option to give them a little bit of extra room to work in.
Bugs
No sanity checks are performed to make sure that any of the options make sense.
Credits
The data files for the initial states supplied with this
program were lifted and converted from the excellent and free program xlife.
Options
-width | Width of the plot in pixels. | 0 |
-height | Height of the plot in pixels. | 0 |
-extra | Number of extra border pixels. | 5 |
-wrap | Wrap around world? | True |
-infile | Initial configuration file | data/life/p8.pbm |
-steps | Number of time steps to simulate. | 1000 |
-inv | Invert all colors? | True |
-mag | Magnification factor. | 10 |
-term | How to plot points. | None |