From d10e76a897b6080d5edd7522582d001c1beea413 Mon Sep 17 00:00:00 2001 From: fdlt3917 Date: Wed, 1 Feb 2023 08:09:46 +0000 Subject: [PATCH] million game - added hint option --- src/main/quizproject.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/quizproject.c b/src/main/quizproject.c index 093dcc2..a6dde08 100644 --- a/src/main/quizproject.c +++ b/src/main/quizproject.c @@ -661,6 +661,7 @@ void play_milliongame() { char million_user_answers[round]; char million_std_answers[round] = {'B', 'A', 'A'}; int million_stay_in_game = 0; + int million_lifeline_hint = 1; char questions[round][256] = { "What is the capital of France?", @@ -721,6 +722,13 @@ void play_milliongame() { printf("\nIncorrect!"); million_stay_in_game == 1; } + break; + case 'H': + million_lifeline_hint = 0; + printf("Hint would be displayed here\n"); + + goto point_one; + break; default: goto point_one;