dylduhamel / Conways-GOL

Quick example of Conway's game of life. Playing around with cellular automata. Rendered with SDL2.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Conway's Game of Life Simulation

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.

Features

  • 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

Compilation and Running (Linux)

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

About

Quick example of Conway's game of life. Playing around with cellular automata. Rendered with SDL2.


Languages

Language:C++ 100.0%