Despite how iconic Conway's Game of Life is, I've never implemented it until now. I wrote this program to commemorate the life of John Conway.
I wrote this program in C++17 using the SDL2 library. I use CMake to build.
How to build and run:
mkdir .build
cd .build
cmake ../
make
./conway
You can also build with Emscripten:
mkdir .embuild
cd .embuild
emcmake cmake ../
emmake make
emrun index.html
To pause/play the game, press the space bar. While the game is paused, you can click the cells to flip their state.