Successfully Added To Cart

EXERCISE SOLUTIONS:

Question 1

Find this variable:

speedFactor

By default, its value is 5. Change it to 10 to double the starting speed of the game!

Question 2

Find the array:

tones[]

Change the Hertz (Hz) frequencies to create different sounds. Lower numbers create a lower pitch, while higher numbers create a higher pitch.

Question 3

Find this section of the code:

for (i = 0; i < 4; i = i + 1){ digitalWrite(i+7, HIGH); } playTone(tones[4], ledTime); for (i = 0; i < 4; i = i + 1){ digitalWrite(i+7, LOW); } delay (200);

Copy and paste this right underneath to create a 3rd blink when the user loses the game!

Bonus Question