From 204baf97815e0c18e93300655560b7c91eb1ddc1 Mon Sep 17 00:00:00 2001 From: fdlt3917 Date: Fri, 3 Feb 2023 09:45:09 +0000 Subject: [PATCH] million game - added display instructions. --- src/main/quizproject.c | 12 +++++++++++- src/main/quizproject.h | 2 ++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/main/quizproject.c b/src/main/quizproject.c index 813ce15..9f22ca9 100644 --- a/src/main/quizproject.c +++ b/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); diff --git a/src/main/quizproject.h b/src/main/quizproject.h index 6379f88..9dd9251 100644 --- a/src/main/quizproject.h +++ b/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-----