htanmo/conway
Conway's Game of Life.
This is a simple implementation of Conway's Game of Life written in Zig, utilizing the SDL library for graphics rendering.
Make sure you have Zig installed on your system. If not, you can download and install it from the official Zig website. Ensure SDL2 is installed on your system. You can install it using your package manager or download it from the SDL website.
git clone https://github.com/htanmo/conway.git
cd conway
zig build -Doptimize=ReleaseSafe
NOTE Executable will be found under ./zig-out/bin directory after compilation.
./conway
Spacebar: Start/Pause the simulation.
C / Middle Mouse: Clear the board (kill all cells).
Right Mouse: Changes cursor mode.
Left Mouse: Change Cell state.
Esc: Exit the game.