https://github.com/claudemuller/life.c
Conway's Game of Life in C
https://github.com/claudemuller/life.c
c conways-game-of-life raylib simulation
Last synced: about 1 year ago
JSON representation
Conway's Game of Life in C
- Host: GitHub
- URL: https://github.com/claudemuller/life.c
- Owner: claudemuller
- Created: 2023-08-06T12:48:34.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-11-11T02:04:10.000Z (over 2 years ago)
- Last Synced: 2025-04-08T23:31:35.261Z (about 1 year ago)
- Topics: c, conways-game-of-life, raylib, simulation
- Language: C
- Homepage:
- Size: 781 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Conway's Game of Life
[](https://github.com/claudemuller/life-c/actions/workflows/c.yml)
Conway's Game of Life written in C with [raylib](https://github.com/raysan5/raylib).

# Requirements
- [gcc](https://gcc.gnu.org/)
- or [clang](https://clang.llvm.org/)
- [make](https://www.gnu.org/software/make/)
- [raylib](https://github.com/raysan5/raylib)
# Simulation Interaction
The simulation starts in `edit` mode:

One can use the:
- `space` key to toggle between editing or running the simulation
- `right-mouse` button to add cells
- `left-mouse` button to remove cells
- `s` key to to seed the Petri dish with random cells

- `enter` key to restart with a clean Petri dish
- `q` key to quit
# Build
```bash
make build
```
# Run
```bash
make run
```
# Build a Debug Binary
```bash
make debug-build
```
# Start `lldb` or `gdb` With Debug Binary
```bash
make debug
```