The ultimate memory game
Placed onThe buttons
To control the buttons we need to add a piece of code that is similar to the piece of code for the LEDs. The biggest difference is that we now work with buttons instead of LEDs.
clickhereto see what we've seen so far
To check if the right button was pressed I used the code below:
scoring
Of course we want to see our points if we are lost. This code shows the points by means of LED flickering.