Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chibby0ne/game_of_life
A C Implementation of John Conway's famous Game of Life cellular automata
https://github.com/chibby0ne/game_of_life
Last synced: about 1 month ago
JSON representation
A C Implementation of John Conway's famous Game of Life cellular automata
- Host: GitHub
- URL: https://github.com/chibby0ne/game_of_life
- Owner: chibby0ne
- License: gpl-2.0
- Created: 2014-03-16T01:30:38.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-16T01:34:21.000Z (almost 11 years ago)
- Last Synced: 2023-08-01T12:58:14.761Z (over 1 year ago)
- Language: C
- Size: 125 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# John Conway's Game of Life
## Description
Implementation of the [John Conway](https://en.wikipedia.org/wiki/John_Horton_Conway "Wikipedia Article")'s [Game of Life](https://en.wikipedia.org/wiki/Conway's_Game_of_Life "Wikipedia Article") based on terminal for Linux Operating Systems
## Installation
```
git clone https://github.com/chibby0ne/gameoflife
cd Game_of_Life/CMake
cmake .
make
```## Usage
```
cd bin/
./gameoflife [OPTIONS] [arguments]...
```### Options
The available options are:
* `-w` _value_ Sets width of the terminal to be used the simulation (default: width of terminal window)
* "-h` _value_ Sets height of the terminal to be used the simulation (default: height of terminal window)
* `-r` _value_ Sets refresh time of the terminal in useconds (default: 0.2 sec) (time between generations of cells)
* `-p` _value_ Sets initial probability of living cell in percentage (default: 10)
* `-h` Shows help## Implementation
* C language
* Random function seed uses system time
* adjustable refresh rate
* adjustable probability of live/dead cell for initial generation
* adjustable width/height of universe (place where cells live/die)## Contributions
Contributions and pull requests are welcome. As long as you comply with these guideline:
* Adhere as much as possible to the existing coding style, mainly, everything that could have curly braces has them
* Good descriptive variable names## License
GPLv2