Browse Source

million game - added hint option

main
fdlt3917 2 years ago
parent
commit
d10e76a897
  1. 8
      src/main/quizproject.c

8
src/main/quizproject.c

@ -661,6 +661,7 @@ void play_milliongame() {
char million_user_answers[round]; char million_user_answers[round];
char million_std_answers[round] = {'B', 'A', 'A'}; char million_std_answers[round] = {'B', 'A', 'A'};
int million_stay_in_game = 0; int million_stay_in_game = 0;
int million_lifeline_hint = 1;
char questions[round][256] = { char questions[round][256] = {
"What is the capital of France?", "What is the capital of France?",
@ -721,6 +722,13 @@ void play_milliongame() {
printf("\nIncorrect!"); printf("\nIncorrect!");
million_stay_in_game == 1; million_stay_in_game == 1;
} }
break;
case 'H':
million_lifeline_hint = 0;
printf("Hint would be displayed here\n");
goto point_one;
break; break;
default: default:
goto point_one; goto point_one;

Loading…
Cancel
Save