I'm making a Simon Says game, but unlike normal Simon Says games (where random sequences are played), I wish to make the sequences non-random and based on instructions.text
So for example: instructions.text
could include "Red,Yellow,Red,Green".
And the game will interpret the text into what the sequence will be.
Right now, I have code that makes the sequence random... please could you push me in the right direction as to how I can make this non-random. Thank you in advance.
public Color [] newSequence (int length)
{
Color [] array = new Color[length];
Random rand = new Random(DateTime.Now.Millisecond);// don't inline w/ colors[] - wont be random
for (int i=0; i<length; i++) {
array[i] = colors[rand.Next(0,4)];
}
this.sequence=array;
return array;
}