Bulls and Cows Challenge Screenshot With Code

Capture

This is my solution to the challenge!

I called the GetGuess() function through PlayGame() inside the for loop to shorten the code. Is there a suggested way to do or is it fine?

Privacy & Terms