Colour Game Trying To Make It Work

Colour Game Trying To Make It Work
0.0 0

#1

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.


#2

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?


#3

I need the colours to be randomized.


#4

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