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.
- Host: GitHub
- URL: https://github.com/yds12/life
- Owner: yds12
- License: mit
- Created: 2017-05-20T23:10:46.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-05-26T10:23:49.000Z (almost 6 years ago)
- Last Synced: 2025-01-13T15:29:49.444Z (about 1 year ago)
- Topics: conway-game, crystal, game-of-life, simulation
- Language: Crystal
- Size: 463 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/).

## 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).