From d03ee2395028e2238d09aca25b047e431013a85c Mon Sep 17 00:00:00 2001 From: fdlt3859 Date: Mon, 30 Jan 2023 17:48:23 +0000 Subject: [PATCH] Added important instruction in guesstheword --- src/main/quizproject.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/main/quizproject.c b/src/main/quizproject.c index d4a0659..f0afcf3 100644 --- a/src/main/quizproject.c +++ b/src/main/quizproject.c @@ -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"); } }