Hello, I am new here and I am Enjoying this course.
I have a question related to the challenge.
I completed it as this:
FBullCowCount FBullCowGame::SubmitGuess(FString Guess){
CurrentTry++;
FBullCowCount BullCowCount;
for (int32 i = 0; i < HiddenWord.length(); i++)
{
if (Guess[i] == HiddenWord[i])
{
BullCowCount.Bulls++;
continue;
}
for (int32 j = 0; j < HiddenWord.length(); j++)
{
if (Guess[i] == HiddenWord[j])
{
BullCowCount.Cows++;
}
}
}
return BullCowCount;}
Are there any performance issues if I wrote my SubmitGuess function like this? The video was showing the different way, but this works for me too.