ok so I've got it doing predetermined sequences. but it's only...umm...how do i say this... the progression is still plus an extra move per level. so each turn it adds a extra move. so pretty close to what I want. but not quite.
void output() { //function for generating the array to be matched by the player
for (int y=turn; y <= turn; y++){ //Limited by the turn variable
Serial.println(""); //Some serial output to follow along
Serial.print("Turn: ");
Serial.print(y);
Serial.println("");
randomArray[0] = (1);
randomArray[1] = (3);
randomArray[2] = (2);
randomArray[3] = (2);
this means the game will ALWAYS progress in that sequence of led1, led3, led2, led2. (as the output and "expected" input)
HOWEVER what i would like it to do is get randomArray[0] to be
randomArray[0] =
digitalWrite (led1, HIGH);
delay(500);
digitalWrite (led1, LOW);
delay(1000);
digitalWrite (led3, HIGH);
delay(500);
digitalWrite(led3,LOW);
delay(1000);
digitalWrite (led2, HIGH);
delay(500);
digitalWrite (led2, LOW);
delay(1000);
digitalWrite (led2, HIGH);
delay(500);
digitalWrite(led2,LOW);
digitalWrite (led2, HIGH);
i know that the code i wrote would not work, but hopefully gives an idea of what im trying to achieve.
thanks again for your patience