3.1.0 • Published 3 years ago

react-game-of-life v3.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

react-game-of-life

A React Component depicting the Conway's Game of Life.

This project was bootstrapped with Create React App.

Demo

Note:

This update has removed all requirejs in favor of es6 styled imports. If requirejs is required for your project, install 1.1.3.

Install:

npm install react-game-of-life

Test:

Clone the repo and run the command npm start. This will run the dev-server and showcase a small component of the LifeManager.

How to use:

import React, {Component} from "react";
import ReactDOM from "react-dom";
import LifeManager from "react-game-of-life";

ReactDOM.render(<LifeManager />, document.findElementById("game"));

Props:

propdescriptiondefaulttype
widthdefines the width of the board20number
heightdefines the height of the board20number
fpsdefines the number of frames to refesh every second60number
lineColordefines the color of the cell's outlinecyanstring
cellActiveColordefines the cell's alive status colorgraystring
cellInActiveColordefines the cell's inactive status colorblackstring
3.1.0

3 years ago

3.0.0

6 years ago

2.1.0

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago