Hello! I need to code a game called Simon, where you follow the patterns by pressing the buttons. I will display what I have thus far but I am stuck. How would I be able to generate a random number from 1 to 4 and Store that random number into the array. I need to Run through the array and based on each number show the corresponding color as lit (could be nothing more than changing from DarkRed to Red or something similar)
I would use Buttons for each of Simons color pads. A control array would allow you to run back through the array with each button click to see if the button clicked is the next in line and matches simons pattern.

I understand that that is what I have to do but I have never been taught how to code that. And where would I put that In my coding?Please help?

simon coding.docx


The first picture is what the program would look like and the second one with the sky-blue background is the about form in the menu