This web app is an attempt at creating a Conway's game of life from a JSON markup, powered by cell.js, a JSON-based web app framework.
The entire app logic is expressed with a single declarative JSON object:
When you run it, it looks like this:
Try out the demo at https://intercellular.github.io/conway/
The app is powered by cell.js, which enables the JSON based approach to building web apps.
To be able to write the entire app in near-100% JSON markup format, we use two $virus:
- conway.virus.js: Generates the game of life sandbox DOM.
- dna.virus.js: Re-generates the "DNA" sequence from which the conway's game of life builds itself.
The whole point of $virus
is that developers can abstract reusable logic into functions that take a JSON object as input and return another JSON as output, thereby "infecting" the original cell. And this is how cell.js
implements plugins.