The code that governs universe updates (i.e. universe.tick()) is moved to after the display functions in index.js.
Explain the motivation for making this change. What existing problem does the pull request solve? 🤔
It was difficult to discern what was happening to my game of life simulation, because I didn't realize the initial state was not being shown. Instead, the second frame of the animation was being shown, which led me to have difficulty when trying to complete the exercises at the end of the second (i.e. the "create a single spaceship as an initial starting point").
Summary
The code that governs universe updates (i.e.
universe.tick()
) is moved to after the display functions in index.js.Explain the motivation for making this change. What existing problem does the pull request solve? 🤔
It was difficult to discern what was happening to my game of life simulation, because I didn't realize the initial state was not being shown. Instead, the second frame of the animation was being shown, which led me to have difficulty when trying to complete the exercises at the end of the second (i.e. the "create a single spaceship as an initial starting point").