Conway's Game of Life written in C using Raylib.
  • C 97.6%
  • Shell 2.4%
Find a file
2026-07-08 19:05:52 +10:00
.gitignore Initial commit 2026-07-08 14:25:59 +10:00
build.sh Initial commit 2026-07-08 14:25:59 +10:00
main.c Add toroidal mode 2026-07-08 19:05:52 +10:00
preview.jpg Initial commit 2026-07-08 14:25:59 +10:00
ReadMe.md Add toroidal mode 2026-07-08 19:05:52 +10:00
UNLICENSE Initial commit 2026-07-08 14:25:59 +10:00

Conway's Game of Life

Conway's Game of Life written in C using Raylib.

Preview

Dependencies

Make sure Raylib is installed. For example, on Arch:

sudo pacman -S raylib

Build

To compile the code:

./build.sh

Run

To run the game:

./gameoflife

Press space to pause/resume, M to toggle between a finite (pink) and toroidal (blue) grid, R to regenerate the world, G to regenerate a world containing a Gosper Glider Gun, and left click to toggle the state of a cell.