|
|
@ -556,6 +556,12 @@ void play_guessTheWord() { |
|
|
|
char guess; |
|
|
|
guess = toupper(guess); |
|
|
|
|
|
|
|
printf("***********************\n"); |
|
|
|
printf("Playing Guess the Word!\n"); |
|
|
|
printf("***********************\n\n"); |
|
|
|
|
|
|
|
printf("IMPORTANT: The first letter is a capital letter!\n\n"); |
|
|
|
|
|
|
|
while (lives > 0) { |
|
|
|
int i; |
|
|
|
int correct = 0; |
|
|
@ -578,13 +584,19 @@ void play_guessTheWord() { |
|
|
|
} |
|
|
|
|
|
|
|
if (strcmp(word, guessed) == 0) { |
|
|
|
printf("You win! The word was: %s\n", word); |
|
|
|
printf("You win! The word was: %s\n\n", word); |
|
|
|
printf("*************************************\n"); |
|
|
|
printf("Thank you for playing Guess the Word!\n"); |
|
|
|
printf("*************************************\n"); |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (lives == 0) { |
|
|
|
printf("You lose! The word was: %s\n", word); |
|
|
|
printf("You lose! The word was: %s\n\n", word); |
|
|
|
printf("*************************************\n"); |
|
|
|
printf("Thank you for playing Guess the Word!\n"); |
|
|
|
printf("*************************************\n"); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|