Hello I chose a different statement, see underneath. Personally I prefer my approach to the If statement in an If statement, just wondering if there are specific reasons not to do this like I did. (Ow and don’t mind the variables. I use camelCase)
for (int32 currentGuess = 0; currentGuess < lengthHidden; currentGuess ++)
{
bool match = guess[currentGuess ] ==myHiddenWord[currentLetter];
if(match && currentLetter == i)
{
bcc.bulls++;
}
else if(match)
{
bcc.cows++;
}
else
{
}
}