Game of Life example using node, to install do the following:
Install node. If you need to install it, this can help you.
Clone code, then
cd node-gol
To run the code, you can do
npm start
If you want to run the tests, you can do
npm install
npm test
Default to 32, but basically defines the space inside a universe object, total of spaces on universe would be spaces x spaces, example if space were 32, total spaces would be 1024
Only option available now is auto, this would populate every space in a universe object with either a dead cell(0) or an alive cell(1)
Value is 10 now, but this basically tells node, when to finish creating new generations in Game of Life, 1st generation is based on the first feed. If you want you can put this value to -1, this would instruct GoL to create new generations without stoping at all.
Parameter to know how often new generations would be created. Value is 1 second now.
Parameter to format the output of the whole universe, only values are:
- pretty