+ <p>5) We need to figure out how to measure the amount of dancing you are doing. The list shows us what we get! Hmm, the numbers are very chaotic. Dancing is messy, who knew? We need to figure out a way to smooth the numbers a little, just so our game doesn't stop and start jarringly. There are two options. 1) We can calculate an average from our list. Averages changes slower and thus we'll have better control over what happens in our game. Or 2) we can use a rolling maximum, the highest in our list at any given time. Since every number in the list stays for a while, a single large number may stay the maximum for some time, also giving us control over our game. Choose one, and figure out how to calculate the value! </p>
0 commit comments