diff --git a/src/main/quizproject.c b/src/main/quizproject.c index 31707d9..9ce7ddf 100644 --- a/src/main/quizproject.c +++ b/src/main/quizproject.c @@ -821,6 +821,19 @@ void play_guessTheWord() { } +void B_displayWelcomeMessage(void) { + printf("\t\t------------------------------------------\n\n"); + printf("\t\t------------------------------------------\n\n"); + printf("\t\t Welcome to The EPIC GAME \n\n"); + printf("\t\t------------------------------------------\n"); + printf("\t\t------------------------------------------\n\n"); +} + +void b_epic_game() { + B_displayWelcomeMessage(); +} + + void feedbackForm(void){ int rating; char feedback[1000]; @@ -876,7 +889,7 @@ int main() { int jump_to_menu = 0; - while (choice != 7 || jump_to_menu) { + while (choice != 8 || jump_to_menu) { printf("Welcome to the Game Menu!\n"); printf("1. QuizGame\n"); printf("2. Fact or Lie?\n"); @@ -884,7 +897,8 @@ int main() { printf("4. Guess the Number!\n"); printf("5. Guess the Word!\n"); printf("6. Smart Brain\n"); - printf("7. Exit\n"); + printf("7. Epic Game\n"); + printf("8. Exit\n"); printf("Enter your choice: "); scanf("%d", &choice); @@ -914,6 +928,10 @@ int main() { jump_to_menu = 1; break; case 7: + b_epic_game(); + jump_to_menu = 1; + break; + case 8: printf("\nThank you for trying our C code!\n"); break; default: diff --git a/src/main/quizproject.h b/src/main/quizproject.h index 8a5936e..f94b56d 100644 --- a/src/main/quizproject.h +++ b/src/main/quizproject.h @@ -44,6 +44,9 @@ void e_printout_r3 (char [][100], char [][100]); int track_r2_score = 0; //----smart_brain_header_end------- +//Epic Game Headers +void B_displayWelcomeMessage(void); + #define NUM_QUESTIONS 5 #define round 3 #define MAX_LIVES 10