3D Game of Life is my attempt to implement a 3-Dimensional version of Conway’s Game of Life in C using Multi-dimensional arrays. I wrote the bulk of the code in X-Code but I am adhering strictly to the C language. I wanted a way to visualize what was going on in memory, but seeing as how I met my main goal, I didn’t continue. I can only go by the number of alive cells. The game does settle to oscillations of varying periods depending upon the random state of the game “space” in generation 0.
Changes must be made in matrix.h before you compile. Beware that this program takes a lot of memory if you are not careful. A grid of 1024x1024x1024 can take several gigabytes of memory. There are obvious ways to optimize this.