Browse Source

million game - added exit function

main
fdlt3917 2 years ago
parent
commit
f2a51d3567
  1. 7
      src/main/quizproject.c
  2. 1
      src/main/quizproject.h

7
src/main/quizproject.c

@ -206,6 +206,11 @@ void million_instructions(){
printf("To ask the Host for advice, Enter H\n"); printf("To ask the Host for advice, Enter H\n");
} }
void million_exit(int million_a){
printf("\nYou have come to the end of Who Wants To Be A Millionaire\n");
printf("\nYour Total Reward is %d\n",million_a);
}
//-------smart_brain_quiz_end------------ //-------smart_brain_quiz_end------------
void displayWelcomeMessage(void) { void displayWelcomeMessage(void) {
@ -866,7 +871,7 @@ void play_milliongame() {
million_i++; million_i++;
} }
printf("\n%d\n",million_checkpoint);
million_exit(million_checkpoint);
// code for game 3 goes here // code for game 3 goes here
} }

1
src/main/quizproject.h

@ -30,6 +30,7 @@ void v_guessingGame(void);
void v_guessTheWord(char word[], char guessed[]); void v_guessTheWord(char word[], char guessed[]);
void million_instructions(); void million_instructions();
void million_exit(int million_a);
//----smart_brain_header_begin----- //----smart_brain_header_begin-----

Loading…
Cancel
Save