Use function "play" to run the game.
board - 2 dimensional array. The output will be captured in this. The bigger the board is, the more interesting the output gets.
state - 2 dimensional array. The initial state of the board. Watch the fun when you change values on this.
timeline - Number of times the conway propagation needs to run/repeat. This is equivalent to time in the realistic sense.
0 - dead organism
1 - live organism
git clone https://github.com/nav064/conwaysgameoflife.git
cd conwaysgameoflife
npm run dev
- The board and state are equi-dimensional. 10X10 in this case. We can generalize to nXn.
- How the organism lives or dies does not take into account any practical features. It is only a statistical representation inspired by Conway's Game rule.
Please feel free to comment/test/reuse/modify.
The eventual question I had is "Are we just a Conway's game of our genes?"