Browse Source

added say thank you function to epic game

main
fdlt3885 2 years ago
parent
commit
f8f47fac24
  1. 5
      src/main/quizproject.c
  2. 1
      src/main/quizproject.h

5
src/main/quizproject.c

@ -1348,6 +1348,10 @@ if (strcmp(answer, "b") == 0) {
return score; 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() { void b_epic_game() {
B_displayWelcomeMessage(); B_displayWelcomeMessage();
b_entertostart(); b_entertostart();
@ -1368,6 +1372,7 @@ void b_epic_game() {
total_score += B_round9(); total_score += B_round9();
total_score += B_round10(); total_score += B_round10();
printf("You scored %d out of 22.\n", total_score); printf("You scored %d out of 22.\n", total_score);
B_saythankyou();
} }

1
src/main/quizproject.h

@ -64,6 +64,7 @@ int B_round7(void);
int B_round8(void); int B_round8(void);
int B_round9(void); int B_round9(void);
int B_round10(void); int B_round10(void);
void B_saythankyou(void);
#define NUM_QUESTIONS 5 #define NUM_QUESTIONS 5

Loading…
Cancel
Save