|
@ -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_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; |
|
|
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] = { |
|
|
char questions[NUM_ROUNDS][256] = { |
|
|
"What is the capital of Germany?", |
|
|
"What is the capital of Germany?", |
|
@ -1278,7 +1278,7 @@ void play_milliongame() { |
|
|
|
|
|
|
|
|
while(million_i < NUM_ROUNDS && million_stay_in_game == 0){ |
|
|
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]); |
|
|
printf("\n%s\n",questions[million_i]); |
|
|
for(int j=0;j<4;j++){ |
|
|
for(int j=0;j<4;j++){ |
|
@ -1310,7 +1310,7 @@ void play_milliongame() { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
else{ |
|
|
else{ |
|
|
printf("\nIncorrect!"); |
|
|
|
|
|
|
|
|
printf("\nIncorrect!\n"); |
|
|
million_stay_in_game == 1; |
|
|
million_stay_in_game == 1; |
|
|
} |
|
|
} |
|
|
break; |
|
|
break; |
|
@ -1332,7 +1332,7 @@ void play_milliongame() { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
else{ |
|
|
else{ |
|
|
printf("\nIncorrect!"); |
|
|
|
|
|
|
|
|
printf("\nIncorrect!\n"); |
|
|
million_stay_in_game == 1; |
|
|
million_stay_in_game == 1; |
|
|
} |
|
|
} |
|
|
break; |
|
|
break; |
|
@ -1354,7 +1354,7 @@ void play_milliongame() { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
else{ |
|
|
else{ |
|
|
printf("\nIncorrect!"); |
|
|
|
|
|
|
|
|
printf("\nIncorrect!\n"); |
|
|
million_stay_in_game == 1; |
|
|
million_stay_in_game == 1; |
|
|
} |
|
|
} |
|
|
break; |
|
|
break; |
|
@ -1375,16 +1375,16 @@ void play_milliongame() { |
|
|
else{} |
|
|
else{} |
|
|
} |
|
|
} |
|
|
else{ |
|
|
else{ |
|
|
printf("\nIncorrect!"); |
|
|
|
|
|
|
|
|
printf("\nIncorrect!\n"); |
|
|
million_stay_in_game == 1; |
|
|
million_stay_in_game == 1; |
|
|
} |
|
|
} |
|
|
break; |
|
|
break; |
|
|
case 'H': |
|
|
case 'H': |
|
|
if(million_lifeline_hint != 1){ |
|
|
|
|
|
|
|
|
if(million_lifeline_host != 1){ |
|
|
printf("\nHint already used\n"); |
|
|
printf("\nHint already used\n"); |
|
|
goto point_one; |
|
|
goto point_one; |
|
|
} else { |
|
|
} else { |
|
|
million_lifeline_hint = 0; |
|
|
|
|
|
|
|
|
million_lifeline_host = 0; |
|
|
printf("Hint would be displayed here\n"); |
|
|
printf("Hint would be displayed here\n"); |
|
|
goto point_one; |
|
|
goto point_one; |
|
|
} |
|
|
} |
|
|