basically. When the mode starts, set all the lights to flashing and set the array of lights to all equal 2.
Run the random number generator. And set the array for that number to 1. Turn that numbered light to flashing.
When that numbered target gets hit set the light to on. Set that number in the array to 0.
First check to see if all the lights are on, check the light state array to see if they are all set to 0. If they are mode over, reset all the lights to off. If not
Then run the random number generatir again. Use a case statement with an if statement inside to compare the number to the same numbe in the lightstate array. If it does nit equal 0 ir 1, light the light. Else run it again through the case statememt.
Thats the best i can come up with here at work while I’m cooking.
I’m sure once you get the gist, you will make it a nice easy way
You need to login in order to like this post: click here