This program simulates Conway's Game of Life, a cellular automaton that is a zero-player game. Its evolution is determined by its initial state, requiring no further input. Set up the initial configuration of cells, and then observe how it evolves.
- SDL2 for rendering the Game of Life simulation
- Adjustable grid size and simulation parameters
- Smooth color transitions for cell states
- The screen.h header is inspired by: TheBuilder-software
Before compiling the program, ensure you have the SDL2 library installed on your system. If you haven't already installed SDL2, you can install it using the following command:
bash
sudo apt-get update
sudo apt-get install libsdl2-dev
For those using MacOS, SDL2 can be installed using Homebrew:
brew install sdl2
Be sure to link SDL2 when compiling:
g++ main.cpp -std=c++20 -lSDL2 -o main