Browse Source

million game - Friend Lifeline used only once

main
fdlt3917 2 years ago
parent
commit
ac7fbd4d57
  1. 18
      src/main/quizproject.c

18
src/main/quizproject.c

@ -759,19 +759,17 @@ void play_milliongame() {
} }
break; break;
case 'P': case 'P':
if(million_lifeline_friend != 1){
printf("\nLifeline Friend already used\n");
goto point_one;
}
else{
million_lifeline_friend = 0; million_lifeline_friend = 0;
printf("\nYou can now ask a friend for help...\n"); 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!");
for(int j=0;j<4;j++){
printf("%s\n",answers[million_i][j]);
} }
else{
million_stay_in_game = 1;
printf("\nIncorrect!");
goto point_one;
} }
break; break;
default: default:

Loading…
Cancel
Save