Browse Source

million game - added display instructions.

main
fdlt3917 2 years ago
parent
commit
204baf9781
  1. 12
      src/main/quizproject.c
  2. 2
      src/main/quizproject.h

12
src/main/quizproject.c

@ -198,6 +198,14 @@ void e_smart_brain() {
score = 0;
track_r2_score = 0;
}
void million_instructions(){
printf("Possible answers are A,B,C & D\n");
printf("To use Fifty/Fifty Lifeline, Enter F\n");
printf("To ask a Friend for help, Enter P\n");
printf("To ask the Host for advice, Enter H\n");
}
//-------smart_brain_quiz_end------------
void displayWelcomeMessage(void) {
@ -655,7 +663,7 @@ void play_factorlie() {
}
void play_milliongame() {
printf("Playing who wants to be a millionaire...\n");
printf("\nPlaying who wants to be a millionaire...\n\n");
int million_i = 0, million_k = 0;;
char million_user_answers[round];
@ -698,6 +706,8 @@ void play_milliongame() {
{ "A) Los Angeles Lakers", "B) Chicago Bulls", "C) Golden State Warriors", "D) Boston Celtics" }
};
million_instructions();
while(million_i < round && million_stay_in_game == 0){
printf("You have %d:Fifty/Fifty\t%d:Phone a Friend\t%d:Hint\t\n",million_lifeline_delete,million_lifeline_friend,million_lifeline_hint);

2
src/main/quizproject.h

@ -29,6 +29,8 @@ void v_factorlie(void);
void v_guessingGame(void);
void v_guessTheWord(char word[], char guessed[]);
void million_instructions();
//----smart_brain_header_begin-----

Loading…
Cancel
Save