~/bend-docscommunity

life.bend fails

raw source on the hub · import 0xbdd0ed8296de5a3e70071442c332a8ec/life.bend as Life

GLIDER — the Life core.

Conway's Game of Life on a torus: cells are U32 (0 dead, 1 alive), rows top to bottom, and the grid wraps on both axes, so every operation is total and no edge cases exist. Neighbor sums are rotation-based (no index arithmetic), which keeps the code small, parallel-friendly and proof-friendly.

1 import
import Base