Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ben-wormald/game-of-life
JavaScript implementation of Conway's Game of Life (technical assessment)
https://github.com/ben-wormald/game-of-life
Last synced: 5 days ago
JSON representation
JavaScript implementation of Conway's Game of Life (technical assessment)
- Host: GitHub
- URL: https://github.com/ben-wormald/game-of-life
- Owner: Ben-Wormald
- Created: 2018-03-02T13:15:47.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-03T16:49:07.000Z (almost 7 years ago)
- Last Synced: 2024-11-06T00:45:43.164Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# game-of-life
JavaScript implementation of Conway's Game of Life
## Usage
Requires Node.js and NPM. To install the required dependencies:
```
npm install
```To run with a randomly generated seed grid:
```
node gameoflife.js
```To run with a custom seed grid:
```
node gameoflife.js beacon.txt
```## Custom seed grids
Custom seed grids should be a plain text file using 0 and 1 for dead and living cells respectively. Line breaks are used to separate rows. For example:
```
000000
011000
011000
000110
000110
000000
```[This article](https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life#Examples_of_patterns) gives examples of some common patterns that can be used to test the game.