Rules:
This simulation follows the classic rules of Conway’s Game of Life:
- A live cell with two or three live neighbors survives.
- A dead cell with exactly three live neighbors becomes a live cell.
- All other live cells die in the next generation, and all other dead cells remain dead.
Topology
Life doesn’t have to run on a flat grid. The same rules can be applied to different algorithms and different topologies. In this example, the simulation runs on a cube. The surface is made from six faces stitched together, and each face contains a 128 × 128 grid of cells. As the simulation runs, cells can interact across the edges where the faces connect, allowing patterns to wrap around the cube.