Game of Life 3D
About
A simple implementation of Conway's Game of Life in 3 dimensions, made over a night.
As the 3rd dimension implies that each cell has potentially up to 26 neighbours instead of 8, I had to play a bit around the original rules to make it works :
- Any live cell with fewer than 7 live neighbours dies, as if by underpopulation
- Any live cell with between 7 and 10 live neighbours survives on to the next generation
- Any live cell with more than 10 live neighbours dies, as if by overpopulation
- Any dead cell with between 6 and 11 live neighbours becomes a live cell, as if by reproduction
Project's code can be found on my Github.