My Guess Dialog ( BullsAndCows Game )

#include <iostream>
#include <string>

using namespace std;

int main()
{
	// introduce the game
	constexpr int WORD_LENGTH = 5;
	cout << "Welcome to bulls and Cows, fun word game.\n";
	cout << "Can you guess the " << WORD_LENGTH << " letter isogram I'm thinking of?\n";
	
// get a guess from the player
string Guess = "";
cout << "Type your guess: ";
cin >> Guess;
// repeat the guess back to them
cout << "My guess is: " << Guess << "\n";

return 0;

}

Privacy & Terms