From f8f47fac24f8a344d19a6a707ab33d5bb116305a Mon Sep 17 00:00:00 2001 From: fdlt3885 Date: Wed, 1 Feb 2023 23:02:27 +0000 Subject: [PATCH] added say thank you function to epic game --- src/main/quizproject.c | 5 +++++ src/main/quizproject.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/main/quizproject.c b/src/main/quizproject.c index 9636797..3f32da7 100644 --- a/src/main/quizproject.c +++ b/src/main/quizproject.c @@ -1348,6 +1348,10 @@ if (strcmp(answer, "b") == 0) { return score; } +void B_saythankyou(void){ + printf("Dear player,\nI just wanted to take a moment to thank you for playing my game.\n It means a lot to me that you took the time to experience what I created.\n Your support and feedback are greatly appreciated.\n I hope you had a blast playing and I look forward to hearing more about your experience.\n Thank you again for your support and I hope to see you in future games!\n Best regards."); +} + void b_epic_game() { B_displayWelcomeMessage(); b_entertostart(); @@ -1368,6 +1372,7 @@ void b_epic_game() { total_score += B_round9(); total_score += B_round10(); printf("You scored %d out of 22.\n", total_score); + B_saythankyou(); } diff --git a/src/main/quizproject.h b/src/main/quizproject.h index b0a1865..fd77d6f 100644 --- a/src/main/quizproject.h +++ b/src/main/quizproject.h @@ -64,6 +64,7 @@ int B_round7(void); int B_round8(void); int B_round9(void); int B_round10(void); +void B_saythankyou(void); #define NUM_QUESTIONS 5