for (int32 Index = 0; Index < Guess.Len(); Index++)
{
if (HiddenWord.GetCharArray().Contains(Guess[Index]))
{
if (HiddenWord[Index]==Guess[Index])
{
BullCount++;
}
else
{
CowCount++;
}
}
}
I wrote the code like that and i got a +3 for cows. Why is this happening?
Edit: It’s about Cows Variable at ProcessGuess but i still can’t understand why.