-
Clone:
git clone https://github.com/staskorz/game-of-life
-
Navigate to project folder:
cd game-of-life
-
Install dependencies:
yarn
-
Run tests:
yarn test
(in verbose mode:yarn test --verbose
) -
Run (in dev mode - will restart on every code modification, terminate with "Ctrl+C"):
yarn start
with sample arguments:
yarn start 3 3 2 3 "0 0 0 1 0 0 1 0 1"
-
Run in normal mode:
node src/index.js
with sample arguments:
node src/index.js 3 3 2 3 "0 0 0 1 0 0 1 0 1"
- width - int - The width of the world
- height - int - The height of the world
- infect-after - int - The number of generations after which the infection stage will start
- max-generations - int - The maximum number of generations that can be created. Including all phases of the game
- seed - [] int - The initial state of the world