Colour Game Trying To Make It Work

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?

Your Color Game

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

  1. I changed the for loop to end before the function definitions
  2. I uncommented the last line of the generateRandomColor function and made that value be returned