https://github.com/foxfirecodes/conway
Conway's Game of Life written in pure Node.JS, zero external dependencies
https://github.com/foxfirecodes/conway
Last synced: 7 months ago
JSON representation
Conway's Game of Life written in pure Node.JS, zero external dependencies
- Host: GitHub
- URL: https://github.com/foxfirecodes/conway
- Owner: foxfirecodes
- Created: 2017-10-16T00:11:49.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-11T22:31:20.000Z (over 8 years ago)
- Last Synced: 2025-01-01T14:08:07.392Z (about 1 year ago)
- Language: JavaScript
- Size: 380 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# conway
> An implementation of Conway's Game of Life with two modes, interactive controls, custom scenarios, and a scenario editor, all written in pure Node.JS with zero external dependencies

## Installation
Just clone the repository
$ git clone https://github.com/Rayzr522/conway.git
## Usage
From inside the repository folder, you can run the following commands:
### Player
$ node conway
# OR
$ node conway
# Example:
$ node conway example/mushroom
### Editor
$ node editor
# OR
$ node editor
# Example:
$ node editor example/continent
## Controls
### Player
Key | Action
----|-------
H or ? | Shows the help screen
Space | Toggles modes between Auto and Manual
+ | Increases FPS by 1, hold shift to increase by 5
- | Decreases FPS by 1, hold shift to decrease by 5
CTRL+O | Opens a different data file
CTRL+C or Q | Quits Conway's Game of Life
Enter/Return | Goes forward 1 year
Left Arrow Key | Goes back 1 year, hold shift to go back 5 years
Right Arrow Key | Goes forward 1 year, hold shift to go forward 5 years
0 | Goes back to year 0
9 | Goes to the final year
### Editor
Press CTRL+C or CTRL+D to quit at any time.
#### Main Menu
Key | Action
----|-------
Up/Down Arrow | Navigate menus
#### Scenario Editor
Key | Action
----|-------
Up/Down/Left/Right Arrow | Move around scenario grid
Space | Toggle state of cell
CTRL+S | Saves the scenario to the scenario file
CTRL+R | Reloads the scenario from the scenario file
CTRL+W or CTRL+Q | Quits back to the main menu