CCGOL is a high-performance simulation of Conway's Game of Life written in C, utilizing OpenGL for rendering with shaders and efficient data structures for large-scale pattern evolution. It supports loading RLE pattern files.
- Compatible C compiler (tested with gcc on linux, minGW on windows)
- OpenGL
makeUse MinGW or a compatible compiler with:
make -f Makefile_winNavigate to build directory and run
./CCGOL <grid size> <screen size><grid size>: Number of simulation cells per axis (e.g. 256 for a 256x256 grid)<screen size>: Size of the application window in pixels (e.g. 1024)
./CCGOL 512 1080CCGOL.exe 512 1080- Arrow Up/Down: Increase/Decrease simulation speed.
- Space: Pause/Resume the simulation.
- Hold Tab: Fast forward the simulation.
- L: Load RLE pattern files.
- R: Reset the simulation.
Sample RLE files are located in the rles/ directory. Patterns can be loaded during runtime.
build/ # Compiled objects and shaders
include/ # Header files for GLAD, GLFW, tinyfiledialogs, uthash.
libs/ # External C libraries (GLAD, tinyfiledialogs)
rles/ # Collection of RLE pattern files
src/ # Source code (game logic, rendering, window, etc.)
Makefile # Linux/macOS build script
Makefile_win # Windows build script