A Randomized Game
19·6
2016
At the end of lesson 4 we get to build a small "dragon slaying" game. It also expands a little on the Math.random() command we learned about earlier (coin toss game).
I'm going to the experts on this. Mozilla explains Math.floor() like this:
The Math.floor() function returns the largest integer less than or equal to a given number.