So here is what I got following the guidelines of the challenge (without any incrementation). I was displaying the index + 1 originally, which works as well, but I’m sure the reasons are to help drive home the setter/getter methods.
//in Main.cpp
void PlayGame()
{
int MaxTries = BCGame.GetMaxTries();
int CurrentTry = BCGame.GetCurrentTry();
for (int i = 0; i < MaxTries; i++)
{
PrintGuess();
std::cout << "Try " << CurrentTry << ". Enter your guess." << std::endl << std::endl;
}
}
//in class
int FBullCowGame::GetCurrentTry()
{
return MyCurrentTry;
}
//and MyCurrentTry initialized to 1