Chapter 5
Update the View
Section 3
Crash Test the View Code
Let's test the code we just added to update the view. At this stage, we're generating one round of the game: we set the initial state by clicking on the grid to make some cells live, we start the game by clicking the start button, and we compute the next generation in the nextGrid, copy that state to grid, and then update the view. So let's give it a try in the browser and see what happens. If we've got everything right, we'll apply the Game of Life rules once to the cells in the grid and see the cells update based on the results of applying the rules.