Implementation of Conway's Game of Life in C
-
make sure gcc is installed by running
gcc --version
on your terminal. If it is not then install it following this guide.
-
configure GTK+. If you need help see the official guide.
-
compile the source code using
gcc -g -o game_of_life gui.c
pkg-config --cflags --libs gtk+-3.0
-
Run the program with ./game_of_life
-
Note: if you want to change the initial conditions modify the matrix.txt file and the DIM constant in header.c