#include
#include
using namespace std;
//I believe this is domaining correction prototyping
void PrintIntro();
string GetGuessAndPrintItBack();
//Game Starts
int main()
{
PrintIntro();
for (int NumberOfTries = 1; NumberOfTries <= 5; NumberOfTries++)
{
GetGuessAndPrintItBack();
}
cout << endl;
return 0;
}
//implementation of the function
void PrintIntro()
{
// Introduce the game
constexpr int WORD_LENGTH = 5;
cout << “Welcome to Bulls and Cows, a fun word game.\n”;
cout << “Can you guess the " << WORD_LENGTH;
cout << " letter isogram I am thinking of?\n”;
cout << endl;
return;
}
//Get a guess from the player
string GetGuessAndPrintItBack()
{
cout << "Your guess is: ";
string Guess;
getline(cin, Guess);
cout << endl;
//display guess
cout << "Your guess was: " << Guess << endl;
cout << endl;
return Guess;
}