So I ran into a problem where Status wasn’t appearing during debug. Yes, the debug config is set to debug and not release, and if it somehow has release optimizations, I have zero idea how that works because literally the tool doesn’t let you look any deeper than changing the processor type.
void PlayGame()
{
BCGame.Reset();
int32 MaxTries = BCGame.GetMaxTries();
std::cout << "Maximum tries: " << MaxTries << std::endl;
std::cout << std::endl;// loop for the number of turns for asking guesses // TODO change from FOR to WHILE loop once we are validating tries for (int32 count = 1; count <= MaxTries; count++) { FText Guess = GetGuess(); EGuessStatus Status = BCGame.CheckGuessValidity(Guess); // submit valid guess to the game FBullCowCount BullCowCount = BCGame.SubmitGuess(Guess); // print number of bulls and cows std::cout << "Bulls = " << BullCowCount.Bulls; std::cout << ". Cows = " << BullCowCount.Cows << std::endl; std::cout << std::endl; } // TODO summarise game here
}
The additional white space between EGuessStatus and the // comment below it apparently broke the debug for me, preventing Status from appearing. After a good amount of frustration and wondering what the hell was wrong with it while posting to the discord chat (where no one’s awake at 4am pst), I finally narrowed it down to literally just removing that space. I couldn’t figure out WHY in the world copy/pasting the Github repo version of the code would work just fine, but mine wouldn’t. There was no functional reason why. And then I narrowed it down to that.
Isn’t half the point of C++ that you can have as much white space as you want and it wouldn’t matter??
TLDR: Don’t have doubled newline white spaces if Status isn’t appearing.