Describe the bug
The initial state of the universe is never displayed, because requestAnimationFrame() calls universe.tick() before calling drawCells().
To Reproduce
Steps to reproduce the behavior:
Go to 'Implementing'
Copy and paste the necessary code (for the canvas drawing variant).
Build and run.
Expected behavior
An 8x8 grid should display the following:
Actual Behavior
The 8x8 grid displays the second frame, rather than the first, which is:
Describe the bug The initial state of the universe is never displayed, because
requestAnimationFrame()
callsuniverse.tick()
before callingdrawCells()
.To Reproduce Steps to reproduce the behavior:
Expected behavior An 8x8 grid should display the following:
Actual Behavior The 8x8 grid displays the second frame, rather than the first, which is: