Browse Source

million game - only one 50/50 lifeline available

main
fdlt3917 2 years ago
parent
commit
360c6354dd
  1. 16
      src/main/quizproject.c

16
src/main/quizproject.c

@ -737,6 +737,11 @@ void play_milliongame() {
} }
break; break;
case 'F': case 'F':
if(million_lifeline_delete != 1){
printf("\nFifty/Fifty lifeline already used\n");
goto point_one;
}
else {
million_lifeline_delete = 0; million_lifeline_delete = 0;
printf("\nComputer will now MARK two wrong answers...\n"); printf("\nComputer will now MARK two wrong answers...\n");
@ -750,16 +755,7 @@ void play_milliongame() {
for(int million_n = 0; million_n < 4; million_n++){ for(int million_n = 0; million_n < 4; million_n++){
printf("%s\n",answers[million_i][million_n]); printf("%s\n",answers[million_i][million_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!");
}
else{
million_stay_in_game = 1;
printf("\nIncorrect!");
goto point_one;
} }
break; break;
case 'P': case 'P':

Loading…
Cancel
Save