GetValidGuess() and PlayGame() are not working correctly

Hello,

I’m having a few problems with my GetValidGuess() andPlayGame() functions in the Bulls and Cows game (original version not the WIP).
The first problem is shown in the following screenshot. If the first guess is not 6 letters, the program automatically quits. I can’t find where and how the program is doing this so, clearly, I’m having some trouble fixing it.

The second problem is that the SubmitGuess(FString Guess) runs (generating the Bulls = x. Cows = y) even after the switch statement outputs its error message to the player.

Thanks for all the help,
Enrico

P.S. Sorry for my spelling of “enter” in the screenshots. Oops… will go fix this now!

By magic the functions are now working correctly. I just followed along in the video.

Hope this helps,
Enrico

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms