/gol

Game of life in many fashions

Primary LanguageJavaApache License 2.0Apache-2.0

Conway's Game of Life

Example code of "game of life" written in various languages.

Each implementation has the same file API

Input are three command line arguments separated by a space

  1. Number of generations to run
  2. Text file that represents the initial grid
  3. Output file name of GIF animation

The text file is formatted as RLE

See LifeWiki for examples of patterns.

Output to command line is a single number representing the execution time of the main loop. The other output is a GIF animation of the generations.