I followed the video exactly as far as I know, and have rebuilt and restarted to try and fix it.
Here’s my PlayGame code after Ben’s corrections:
void PlayGame()
{
FBullCowGame BCGame; //instantiate. To create an instance of something
int MyMaxTries = BCGame.GetMaxTries();
std::cout << MyMaxTries << std::endl;// loop the questions and answers
for (int Count = 1; Count <= MyMaxTries; Count++)
{
std::string Guess = GetGuess();
std::cout << "Your guess was : " << Guess << std::endl;
std::cout << std::endl;
}
}
Here’s the private variables from my header:
private:
int MyCurrentTry;
int MyMaxTries = 5;
bool isIsogram;
};
I have no idea how to fix this. Please help!