|
|
@ -25,6 +25,28 @@ int* randomNumber() { |
|
|
|
return arr; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//-------smart_brain_quiz_begin---------- |
|
|
|
|
|
|
|
void e_press_key_start() { |
|
|
|
char e_start_game; |
|
|
|
scanf(" %c", &e_start_game); |
|
|
|
e_start_game = toupper(e_start_game); |
|
|
|
} |
|
|
|
|
|
|
|
void e_display_instruction() { |
|
|
|
printf("\t\t-------------------------------------------------------\n"); |
|
|
|
printf("\t\t To start this Quiz, here are the instructions\n"); |
|
|
|
printf("\t\t------------------------------------------------------\n\n"); |
|
|
|
printf("\t\t>>Press any key and enter to begin the Quiz.<<\n\n"); |
|
|
|
e_press_key_start(); |
|
|
|
} |
|
|
|
|
|
|
|
void e_smart_brain() { |
|
|
|
e_display_instruction(); |
|
|
|
} |
|
|
|
//-------smart_brain_quiz_end------------ |
|
|
|
|
|
|
|
void displayWelcomeMessage(void) { |
|
|
|
displayGameInstructions(); |
|
|
|
} |
|
|
@ -656,14 +678,15 @@ int main() { |
|
|
|
|
|
|
|
int jump_to_menu = 0; |
|
|
|
|
|
|
|
while (choice != 6 || jump_to_menu) { |
|
|
|
while (choice != 7 || jump_to_menu) { |
|
|
|
printf("Welcome to the Game Menu!\n"); |
|
|
|
printf("1. QuizGame\n"); |
|
|
|
printf("2. Fact or Lie?\n"); |
|
|
|
printf("3. Who wants to be a millionaire\n"); |
|
|
|
printf("4. Guess the Number!\n"); |
|
|
|
printf("5. Guess the Word!\n"); |
|
|
|
printf("6. Exit\n"); |
|
|
|
printf("6. Smart Brain\n"); |
|
|
|
printf("7. Exit\n"); |
|
|
|
printf("Enter your choice: "); |
|
|
|
scanf("%d", &choice); |
|
|
|
|
|
|
@ -689,6 +712,10 @@ int main() { |
|
|
|
jump_to_menu = 1; |
|
|
|
break; |
|
|
|
case 6: |
|
|
|
e_smart_brain(); |
|
|
|
jump_to_menu = 1; |
|
|
|
break; |
|
|
|
case 7: |
|
|
|
printf("\nThank you for trying our C code!\n"); |
|
|
|
break; |
|
|
|
default: |
|
|
|