So i have this funcion that asks for input if player wants to play again ->
bool AskToPlayAgain()
{
cout << "Play again?\n";
string PlayerResponse = "";
getline(cin, PlayerResponse);
cout << "First Character: " << PlayerResponse[0];
cout << endl;
return false; }
This function works on its own, but i put it after my main game function it just skips it. My main game function is -->
void PlayGame(){
Initialize();
for (int i = 0; i < 5; i++)
{
cout << "Introduce your word guess in 5 attempts: \n";
cin >> GuessWord;
if (GuessWord == Word)
{
cout << "Correct Guess!!!\n";
}
else
{
cout << "Wrong Guess!!!\n";
cout << endl;
}
}
cout << "Correct word is " << Word;
cout << endl;
return;}
So yes, not sure why it does that.