https://github.com/idiotwu/game-of-life
A study on Conway's Game of Life
https://github.com/idiotwu/game-of-life
Last synced: 8 months ago
JSON representation
A study on Conway's Game of Life
- Host: GitHub
- URL: https://github.com/idiotwu/game-of-life
- Owner: idiotWu
- License: mit
- Created: 2018-12-26T11:26:18.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-08T10:22:07.000Z (almost 7 years ago)
- Last Synced: 2025-01-20T14:49:17.672Z (10 months ago)
- Language: TypeScript
- Homepage: https://golife.stackblitz.io/
- Size: 1.16 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Requirement
- Node.js 10+ ([download](https://nodejs.org))
## Install
1. Clone this repository: `git clone git@github.com:idiotWu/game-of-life.git`
2. Install npm dependencies: `npm install`
## Usage
```
Usage: npm start -- [options]
Options:
--out-dir Set output directory, default to ./stat
--threads Set the number of multi-threads, default is 4
--size Set world size, default is 100
--count Set the number of worlds, default is 1000
--range .. Set the range of initial alive cell density, default is [10,90]
--step Set the value to increase initial density by, default is 10
--records Set the maximum number of records, default is 10
-h, --help output usage information
```
For example, the following command generates a 300*300 world:
```bash
npm start -- --size 300
```
## License
[MIT](LICENSE)