Everything's a graph
A non-Euclidean Game of Life
The Game of Life can be played on a graph, specifically a nx.watts_strogatz_graph(30, 8, 0.1)
:
The Game of Life has few rules:
- live nodes with 2 or 3 live neighbors live to the next step
- dead nodes with 3 live neighbors spring to life in the next step
- all other nodes die in the next step
Harsh, but principled.
Although it's typically played on a 2D infinite Euclidean grid, there's no reason the rules can't to non-euclidean
topologies.
Try it yourself: python -m nx3d life nogui watt
Requires nx3d 22.10.4 or greater.