I am trying to make my colour game display 4 squares in easy and another 4 in hard but pressing either button does not do anything.
I had to fix a bunch of syntax errors just to get it to display,
mebbe you can try from there?
p.s. look up “Coding Style” mebbe?
I need the colours to be randomized.
I managed to get the colours randomized. I modified @Xiija’s code, and made the following changes
- I changed the for loop to end before the function definitions
- I uncommented the last line of the
generateRandomColorfunction and made that value be returned