This browser has no WebGPU, so the sketch cannot run here. The program is below, and it runs in a current Chrome, Edge or Safari.

Game of Life

Conway's Game of Life

Open in new tab ↗ · binarycagolmoore

/////////////////////////////////////////
// Conway’s Game of Life
// wikipedia.org/wiki/Conway%27s_Game_of_Life
////////////////////////////////////////

// Moore Neighborhood
&V9 = #.SUM((-1, -1), (1, 1));
&V8 = sub(&V9, #); // without self

#GOL{
  dim = (256, 256);
  // start with 10% alive
  set = sml(rand(), 0.1); 
  // Conway's Game of Life
  run = add(eql(&V8, 3), eql(&V9, 3)); 
}

~vis{ col = #GOL;}