An open API service indexing awesome lists of open source software.

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

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)