Simple Simon
Arduino Code for Simple Simon Game int LEDPins [4] = {2,3,4,5}; int buttonPins [4] = {6,7,8,9}; int LEDSequence [32]; void setup () { Serial.begin(9600); for(int i =0; i<4; i++){ pinMode(LEDPins[i], OUTPUT); pinMode(buttonPins[i], INPUT); } // setting the randomizer for game randomSeed(analogRead(A0)); } void loop () { bool lose = false; //line bellow will be the random sequence for the lights for (int i =0; i<32; i++) { LEDSequence[i] = random(4); Serial.println(LEDSequence[i]); delay(250); } //begining of the Simon game //doing a loop for the level for (int level =0; level <32; level++){ //show loop here for (int i =0; i < level; i++){ digitalWrite(LEDPins[LEDSequence[i]], HIGH); ...