This PR adds a drawGrid() and drawCells() call just before the
first call to requestAnimationFrame() in order to ensure that the initial
state of the universe is drawn prior to executing a Universe.tick() call.
Explain the motivation for making this change. What existing problem does the pull request solve? 🤔
If this is not done, the initial state of the universe is never drawn,
which can be confusing for those looking to implement the exercises where a
specific starting set of cells is desired.
Summary
This PR adds a
drawGrid()
anddrawCells()
call just before the first call torequestAnimationFrame()
in order to ensure that the initial state of the universe is drawn prior to executing aUniverse.tick()
call.Explain the motivation for making this change. What existing problem does the pull request solve? 🤔
If this is not done, the initial state of the universe is never drawn, which can be confusing for those looking to implement the exercises where a specific starting set of cells is desired.