+ 2
function help (Hangman Game)
I can't get my winner function to output that you've won once all the letters have been inputted https://code.sololearn.com/cTyaf4l9fgms/?ref=app
1 Answer
+ 1
Should the winner() function be like this instead?
bool winner (bool guessed[],int letters)
{
for (int i=0; i<letters; i++){
if (guessed[i]==false){
return false;
}
}
return true;
}