← Back to Game of Life

Game of Life

A shared Conway's Game of Life board. Choose an R-pentomino, glider, lightweight spaceship, or a random shape and watch the same simulation evolve with other visitors.

Standard Conway Life can settle into still lifes or repeating oscillators. A random pattern arrives every minute to introduce fresh activity, even while people are playing.

How to Play

Choose a color, shape, and orientation, then select any cell to plant it. Direction arrows show how gliders and spaceships travel on an empty board. Random orientation picks a rotation on each click; Random shape picks both a shape and orientation. The shared board advances five times each second: new shapes appear after simulation and begin evolving on the following tick. Each tab keeps its selections through refresh. Patterns are clipped at the edges and overwrite occupied cells in their selected color.

How It's Built

Rust keeps one in-memory board for this server process and streams changed snapshots to browsers with Datastar SSE.

For more details, read Building a Multiplayer Game of Life with Rust + Datastar.