Skip to content

yovanoc/gameoflife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game of Life made with ReactJS

How to use

Simply:

    ReactDOM.render(
        <GameOfLife worldSize={1} squareSize={5} generationSpeed={20} population={0} gliderGun={true}/>,
        document.querySelector('.gameoflife-shell')
    );

Where:

attribute value
worldSize amount of cells
squareSize cell size
generationSpeed milliseconds to parse the next generation
population amount of lifes
gliderGun print Glider Gun (the world size will be adjusted to fit the Glider Gun)

Example

Glider Gun example

About

Game of Life made with ReactJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published