life

Conway's Game of Life implemented in Crystal using CrSFML.

Life Screenshot

Compiling

To build the executable, in the root directory run:

crystal deps
crystal build src/life.cr

In order to compile the program with the commands above you need to have crystal and CrSFML installed.

Usage

To run:

./life

To change the initial configuration and size of the grid and other settings, please edit the files life.cfg and board.dat. The file board.dat is only used if the generation mode is set to file, otherwise (random), the initial board state is randomly generated.

RIP John Conway.