My solution has no bugs. But I fixed it differently. Is this a better approach, or a bug with XCODE?

My first conditional is outside of the second loop if (guestChar == hiddenChar).

Maybe I also incremented BullCowCount.Bulls/BullCowCount.Cows incorrectly?

Here is my Submit Guess:

Here is my BFullCowCount:
25 AM

This solution is correct. I posted this question before watching the future videos where the instructor solved the bug. Their solution was very similar to mine.

Thank U This really helped me !!!

Privacy & Terms