https://github.com/ivaaane/conway
Tiny Conway's Game of Life implementation
https://github.com/ivaaane/conway
automaton c cellular-automaton cli conway game-of-life life terminal
Last synced: 22 days ago
JSON representation
Tiny Conway's Game of Life implementation
- Host: GitHub
- URL: https://github.com/ivaaane/conway
- Owner: ivaaane
- Created: 2024-09-12T08:52:56.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-12-23T11:01:40.000Z (4 months ago)
- Last Synced: 2025-02-06T08:31:56.781Z (2 months ago)
- Topics: automaton, c, cellular-automaton, cli, conway, game-of-life, life, terminal
- Language: C
- Homepage:
- Size: 77.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Conway's Game of Life
Matrix greenrain screensavers are getting old!
This is a fairly simple implementation of Conway's celular automaton *The Game of Life*, directly available from the terminal. Now there is a tiny living world in your workspace :3
Right now the only initial configuration is *The R-pentomino* (this one):
```
#
##
##
```## Usage
Execute:
```sh
conway
```Options:
| flag | description |
|-----------|------------------------------------------|
|`-c [char]`| The character representing a living cell |
|`-d [int]` | The delay time between ticks |
|`-r` | Randomizes the initial generation |
|`-l [int]` | Limits the number of generations |
|`-h` | Show help |Other example:
```sh
conway -c 8 -d 25
```## Install
```sh
git clone https://github.com/ivaaane/conway.git
cd conway
sudo make install
```## Roadmap
- [x] Thing works.
- [ ] More default configurations.
- [ ] Option to input custom configuration.
- [x] Option to limit the number of generations.
- [x] Option to randomize the initial configuration.
- [ ] Color options.