Skip to content

vire/goly-moly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Goly Moly

Helper library for game of life (goly)

It provides a updateWorld function which accepts the current state and returns next generation state.

  • State must be an array of arrays (cells) const initialState = [[0, 0], [0, 1], [0, 2]]
  • Cell must be an array of exactly two coordinates [x, y] e.g. [0, 0]

Setup

$ npm install

Build

$ npm run build

Test

$ npm test

License

MIT

About

Game of life helper library

Resources

Stars

Watchers

Forks

Packages

No packages published