GitHunt
TU

tuanngominh/game-of-life

John Conway's Game of life in react

Game of life CircleCI codecov

Game implementation on react with Controls and Inspector ability. Play game and check behind the scene .

Game rule

Game rule explain by John Conway: https://www.youtube.com/watch?v=E8kUJL04ELA

Note about simulate enzyme event

Mark check box checked (enzyme github issue)

checkbox.simulate('change', { target: { checked: true } })

Enter value (enzyme github issue)

input.simulate('change', {target: {value: newBoardsize}})

Todo

  • Enable/disable buttons depend on usage
  • Ability to have a massive board (e.g 1000 x 1000). Render board using canvas (for render huge amount of item)
  • When there is no change in population, show a message and stop calculation
  • Build webpack deploy script from scratch, replace one created by create-react-app
  • Show test coverage on github code page
  • Use webworker to offload the calculation
  • When mouse over current board, show mouse over cell on current board and previous board
  • Hint: mark which creature will die and which will be born in next gen (make sense when manually move to next generation for testing)

Languages

JavaScript91.5%CSS5.6%HTML2.9%

Contributors

Created January 7, 2017
Updated June 12, 2021
tuanngominh/game-of-life | GitHunt