+ 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

17th Apr 2018, 6:05 PM
King
King - avatar
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; }
17th Apr 2018, 6:15 PM
Emma