Hi Forum,
I am trying to build a Mastermind Game sequence where
for (i=0, i<UserGuess.length, i++)
if UserGuessArray(i) = RandomNumber(i)
RandomNumberIndexBoolean(i) = True
Cows Counter +1
else
for (j=0, j<UserGuess.length, j++)
if UserGuessArray(i) = RandomNumber(j) AND RandomNumberIndexBoolean(j) = False
Bulls Counter +1
else
RandomNumberIndexBoolean(j) = True
I am having difficulties anchoring (i) into (j), I am currently using a nested For Each loop
I hope I have explained the problem clearly.
Sorry for the tiny screenshot, I want to share as much code as possible
Any advice, even to re-write would be appreciated ![]()
