The project is created by create-react-app
with some settings untouched.
http://www.runademo.com/belong-code-test/
- At the time it generates the next state of cells, it examines all positions of the board. Because a cell only spawns when there are neighbours, an improvement can be done by defining a boundary of existing cells.
- When create a new immutable state, other methods e.g
for loop
can be used instead ofJSON.parse
to improve speed.
npm i
npm start
npm test