Browse Source

million game - added phone a friend option

main
fdlt3917 2 years ago
parent
commit
03ae13e63c
  1. 16
      src/main/quizproject.c

16
src/main/quizproject.c

@ -748,6 +748,22 @@ void play_milliongame() {
scanf(" %c", &million_user_answers[million_i]);
million_user_answers[million_i] = toupper(million_user_answers[million_i]);
if(million_user_answers[million_i] == million_std_answers[million_i]){
printf("\nCorrect!");
}
else{
million_stay_in_game = 1;
printf("\nIncorrect!");
}
break;
case 'P':
million_lifeline_friend = 0;
printf("\nYou can now ask a friend for help...\n");
printf("Enter a valid Response: ");
scanf(" %c", &million_user_answers[million_i]);
million_user_answers[million_i] = toupper(million_user_answers[million_i]);
if(million_user_answers[million_i] == million_std_answers[million_i]){
printf("\nCorrect!");
}

Loading…
Cancel
Save