Yes, i write a mastermind clone.
The a problem is when through the array.
The following case queries are done:
0 = No match
2 = Complies
at 1 = I still have a problem. I just do not know how I can program a loop in which I remember where I was.
namely it is to compare the first array with the second, until he finds some of the first array in the second array.
So in my example would have at the third pass of the loop stop at red, show me something, then restart the last pass and show something.
Sorry for the englisch (translate with google)
The a problem is when through the array.
The following case queries are done:
0 = No match
2 = Complies
at 1 = I still have a problem. I just do not know how I can program a loop in which I remember where I was.
namely it is to compare the first array with the second, until he finds some of the first array in the second array.
So in my example would have at the third pass of the loop stop at red, show me something, then restart the last pass and show something.
Sorry for the englisch (translate with google)