An open API service indexing awesome lists of open source software.

https://github.com/yds12/life

Conway's Game of Life implemented in the Crystal language with the CrSFML library.
https://github.com/yds12/life

conway-game crystal game-of-life simulation

Last synced: about 1 year ago
JSON representation

Conway's Game of Life implemented in the Crystal language with the CrSFML library.

Awesome Lists containing this project

README

          

# life

[Conway's Game of Life](https://en.wikipedia.org/wiki/Conway's_Game_of_Life) implemented in [Crystal](https://crystal-lang.org/) using [CrSFML](https://github.com/oprypin/crsfml/).

![Life Screenshot](/screenshot/life02.png?raw=true)

## 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](https://en.wikipedia.org/wiki/John_Horton_Conway).