True Mirai Kaitaku Club WikiWikipedia Is Dead ↗ ← Top
Cellular Automata and the Game of Life

【Implementation】P2P Life Game: Self-replicating, democratic network

There’s no central hub or master clock. Each node only talks to its neighbor, and the Game of Life keeps ticking. Browser tabs connect directly to each other without a server—and it actually works.

Slogan: “Reclaim true democracy with technology.”
Even without a central hub, local rules and equal neighbors keep the whole moving. We’ll test that with a tiny implementation.

Implementation A: Asynchronous Cell Agent

Each cell on the board is an independent tiny agent. There’s no global clock or board. A cell advances its generation once its eight neighbors have caught up. The order is random each turn. Yet the outcome matches that of a standard synchronous Game of Life exactly (see the “Verification” below).

booting…

Light-blue marks the board of the overall minimal generation. Orange marks cells that are ahead (in a generation beyond the rest). The very emergence of a lead gap proves there’s no global clock.

Implementation B: Tile Peer (P2P between tabs).

Divide an infinite board into 32 × 32 tiles, with each browser tab handling a single tile. Adjacent tabs exchange only the edge cells directly. No server is involved (we use the browser’s BroadcastChannel).

  1. Click “Open in a new tab” below.
  2. A new tab automatically takes the next seat beside an existing tab.
  3. Place a glider on one side. Crossing the tab boundary, it moves to the neighboring tab.

connecting…

Protocol (key points).

MessageContent
who“Is anyone there?” Existing peers send back my endpoint.
edgeOwn tile coordinates, generation g, edge rows and columns (the four sides and four corners)

Verification

ImplementationVerificationResult
AOn a random initial board, across roughly 3,000 updates, each time it was compared against a synchronous reference implementation.Mismatch 0
BUsing two tiles, compare a glider and random cells that cross the boundary over 60 generations against a reference implementation (single board).Mismatch 0

Verification was carried out on Node.js, directly on the code of this implementation.

The true meaning of “self-replication”

This network does not spread to other people's computers on its own. It spreads only when people who have consented open a tab themselves and spin up a node. It does not use virus or worm techniques. This is part of the design that follows the boundary clause of #task001: Creatively destroy the Hokudai Mirai Kaitaku Club (legal, non-harmful).

Next phase (unimplemented).

StageContentChallenge
1Directly connect browsers on separate devices via WebRTC.You need a first-hand connection handshake (signaling). If you use a manual copy-paste method, no server is required.
2Record part of the board on IPFS so anyone can recreate it.IPFS and the Meaning of Content Addressing
3A Game-of-Life-style democratic experiment that changes the rules by voteDemocracy via P2P: Three layers, Realizing democracy through technology
The current B works between tabs on the same device and same browser. Stage 1 of crossing devices is the next implementation. What we can say works here is the local-sync algorithm and its correctness (as verified above).

Related Topics

Read via a Wikipedia mirror (wikipedia-is-dead.com)

Implementation side: Manifest ↗ / Network ↗ / Rescuing Deleted Articles ↗ / Join ↗

Pages that reference this page