ridiculous? It is! :)
Because it's a
funny way to learn the underlying frameworks... and I believe nobody has ever done it before (in that "architecural" style at least) ¯\_(ツ)_/¯.
(Any Arguments how this could have been done differently might be valid.)
Resetcreates an empty configuration.
Draw Modeavailable with the shortcut
d. Hovering over the cells will toggle their state. (Not available on touch devices...)
The Rules of the game describe how every cell interacts with its neighbours:
You can initialize the board by adding a custom state to the URL (
To get a the current state just click
share, and you will see the shareable URL in your browsers address bar.
I'm so glad that you are curious to see how I built this. The complete code is available on Github :) Please don't hesistate to get in touch if you have any questions or suggestions since no solution will ever be the single perfect one. (Yes, I see a ton of possible improvements too, but as everything it comes with trade offs, so I decided to keep it as small as possible, while having something that demonstrates the idea nonetheless.)
I invite you to clone the code and fiddle around with it for yourself. There are some interesting ideas I didn't include in this simple example:
Auto Play Mode:with the possibility to adjust the interval how often the form is submitted per second.
Save/Load Board State:this might be cool for collecting patterns.
Statistics:count the number of generations and living/dead cells.