Play Conway’s Game of Life on Bitcoin Forever

Conway’s Game of Life is a fascinating zero-player game on a grid, whose evolution is determined by its initial state. Each generation is a pure function of the preceding one.

Game Of Life

We implement the game on Bitcoin SV. Each generation evolves to a new generation when triggered by a bitcoin transaction. The game lives completely on chain. As long as there are transactions interacting with it, it lives on chain forever.

Rules

  1. Any live cell with fewer than two live neighbours dies, as if by needs caused by underpopulation.
  2. Any live cell with more than three live neighbours dies, as if by overcrowding.
  3. Any live cell with two or three live neighbours lives, unchanged, to the next generation.
  4. Any dead cell with exactly three live neighbours cells will come to life.
The Game of Life

Implementation

The generation of the game is stored as the state of the contract. We show the part enforcing rules below. The complete contract can be found here.

Game of Life Contract

Updates: 7/5/2021

How to create artificial life inside Bitcoin

Bitcoin script is Turing Complete: sCrypt’s ‘Game of Life’ is Proof

sCrypt Inc (https://scrypt.io) is a company with a mission to provide integrated on-chain smart contracting solutions using the original BitCoin Protocol on BSV