Skip to main content
100%

Game of Life (Possibly)

✓ Published0🌍 Public
WWaseem Medhat
Last edited Dec 8, 2020
Created on Dec 7, 2020
Forked from Cell Matrix

A grid of 10 by 5 cells displays Conway's Game of Life, with each cell toggling between alive (yellow) and dead based on neighbor counts. The simulation updates every two seconds, using a random Bernoulli distribution (d3.randomBernoulli) to generate the initial state. React hooks manage the cell matrix state, while SVG rectangles render the grid within a VizContainer. The code implements the game rules through countNeighbors and go functions, using setInterval for animation.

AI-generated description
MIT Licensed

Similar vizzes