Browse Source

refactoring - added newline at end of incorrect.

main
fdlt3917 2 years ago
parent
commit
7839a0d77b
  1. 16
      src/main/quizproject.c

16
src/main/quizproject.c

@ -1237,7 +1237,7 @@ void play_milliongame() {
int million_i = 0, million_k = 0, million_checkpoint = 0, million_reward = 0, million_count_replace = 0;
int million_stay_in_game = 0, million_lifeline_friend = 1, million_lifeline_delete = 1, million_lifeline_host = 1;
char million_std_answers[round] = {'A', 'C', 'D', 'C', 'B', 'D', 'B', 'A', 'B', 'B', 'A', 'D', 'C', 'C', 'B'} , million_user_answers[round];
char million_std_answers[NUM_ROUNDS] = {'A', 'C', 'D', 'C', 'B', 'D', 'B', 'A', 'B', 'B', 'A', 'D', 'C', 'C', 'B'} , million_user_answers[NUM_ROUNDS];
char questions[NUM_ROUNDS][256] = {
"What is the capital of Germany?",
@ -1278,7 +1278,7 @@ void play_milliongame() {
while(million_i < NUM_ROUNDS && million_stay_in_game == 0){
printf("\nYou have %d:Fifty/Fifty\t%d:Phone a Friend\t%d:Hint\t\n",million_lifeline_delete,million_lifeline_friend,million_lifeline_hint);
printf("\nYou have %d:Fifty/Fifty\t%d:Phone a Friend\t%d:Hint\t\n",million_lifeline_delete,million_lifeline_friend,million_lifeline_host);
printf("\n%s\n",questions[million_i]);
for(int j=0;j<4;j++){
@ -1310,7 +1310,7 @@ void play_milliongame() {
}
else{
printf("\nIncorrect!");
printf("\nIncorrect!\n");
million_stay_in_game == 1;
}
break;
@ -1332,7 +1332,7 @@ void play_milliongame() {
}
else{
printf("\nIncorrect!");
printf("\nIncorrect!\n");
million_stay_in_game == 1;
}
break;
@ -1354,7 +1354,7 @@ void play_milliongame() {
}
else{
printf("\nIncorrect!");
printf("\nIncorrect!\n");
million_stay_in_game == 1;
}
break;
@ -1375,16 +1375,16 @@ void play_milliongame() {
else{}
}
else{
printf("\nIncorrect!");
printf("\nIncorrect!\n");
million_stay_in_game == 1;
}
break;
case 'H':
if(million_lifeline_hint != 1){
if(million_lifeline_host != 1){
printf("\nHint already used\n");
goto point_one;
} else {
million_lifeline_hint = 0;
million_lifeline_host = 0;
printf("Hint would be displayed here\n");
goto point_one;
}

Loading…
Cancel
Save