Four Rules - RichardAlexanderGreen/GameOfLife3D GitHub Wiki
Game of Life in 3D with 4 rules:
- A rule for counting the number of neighbors a cell has.
- Example: a 3D cell has a maximum of 9 + 9 + 8 = 26 neighbors if you count all the diagonals.
- But you could just count along the main axes and you would only have a maximum of 6.
- A rule for seeding empty and dead cells.
- The 2D version will seed when the number of neighbors is exactly 3.
- But in 3D you could rule that the cell "below" must be alive for 2 cycles and that the cell above must be empty.
- A rule for killing live cells.
- The 2D version kills cells that have more than 3 neighbors.
- But in 3D you could set this to a higher number in or some pattern.
- A rule to run the other rules.
- In the current version, the seed rule runs above the kill rule.
- If a cell is seeded, it will not be killed in the same iteration.
- If the kill rule seems to contradict the seed rule, the seed rule prevails.