This project implements Conway's Game of Life, a cellular automaton devised by the mathematician John Conway. The game consists of a grid of cells where each cell can be in one of two possible states, alive or dead, based on simple rules.
- C Compiler (e.g., GCC)
- SDL2 Library
-
Clone the repository:
git clone [email protected]:DennisLent/GameOfLife.git
-
Navigate to the project directory:
-
Make a build folder and build the project:
mkdir build cd build cmake .. make -
Run the executable inside the build folder:
./GameOfLife -d <dimension> -p <pattern>
Replace
<dimension>with the desired grid size and<pattern>with the pattern path (located in thefilesdirectory). Example:./GameOfLife -d 100 -p "../files/corder.lif"
Place pattern files (.lif) in the files directory to load different initial configurations.