https://github.com/thehxdev/gol
Conway's Game of Life written in C
https://github.com/thehxdev/gol
Last synced: about 1 year ago
JSON representation
Conway's Game of Life written in C
- Host: GitHub
- URL: https://github.com/thehxdev/gol
- Owner: thehxdev
- Created: 2024-02-09T13:47:02.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-24T05:38:35.000Z (about 2 years ago)
- Last Synced: 2025-01-13T19:38:30.861Z (over 1 year ago)
- Language: C
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GoL
[Conway's Game of Life](https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life) written in C.
## Build
First make sure that a C compiler like `gcc` or `clang`, `cmake` and `make` are installed.
Clone the repository:
```bash
git clone --depth 1 --branch=main https://github.com/thehxdev/gol
cd gol
```
Then Build GoL:
```bash
mkdir build
cmake -DOPTIMIZE=1 -B build/ -S .
cmake --build build/
```
## Usage
Once you built GoL, execute it from `build/` directory.
```bash
./build/gol
```
## Nix
> [!NOTE]
> Make sure that nix experimental features (`nix-command` and `flakes`) are enabled.
Execute GoL directly as a Nix Flake:
```bash
nix run github:thehxdev/gol
```