|
@ -444,6 +444,19 @@ void play_factorlie() { |
|
|
|
|
|
|
|
|
void play_milliongame() { |
|
|
void play_milliongame() { |
|
|
printf("Playing who wants to be a millionaire...\n"); |
|
|
printf("Playing who wants to be a millionaire...\n"); |
|
|
|
|
|
|
|
|
|
|
|
int million_i = 0; |
|
|
|
|
|
|
|
|
|
|
|
char questions[round][256] = { |
|
|
|
|
|
"What is the capital of France?", |
|
|
|
|
|
"Who was the first president of the United States?", |
|
|
|
|
|
"Which team won the most NBA championships?" |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
while(million_i < round){ |
|
|
|
|
|
printf("\n%s\n",questions[million_i]); |
|
|
|
|
|
million_i++; |
|
|
|
|
|
} |
|
|
// code for game 3 goes here |
|
|
// code for game 3 goes here |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -503,7 +516,7 @@ int main() { |
|
|
printf("Welcome to the Game Menu!\n"); |
|
|
printf("Welcome to the Game Menu!\n"); |
|
|
printf("1. QuizGame\n"); |
|
|
printf("1. QuizGame\n"); |
|
|
printf("2. Fact or Lie?\n"); |
|
|
printf("2. Fact or Lie?\n"); |
|
|
printf("3. Game 3\n"); |
|
|
|
|
|
|
|
|
printf("3. Who wants to be a millionaire\n"); |
|
|
printf("4. Exit\n"); |
|
|
printf("4. Exit\n"); |
|
|
printf("Enter your choice: "); |
|
|
printf("Enter your choice: "); |
|
|
scanf("%d", &choice); |
|
|
scanf("%d", &choice); |
|
@ -516,7 +529,7 @@ int main() { |
|
|
play_factorlie(); |
|
|
play_factorlie(); |
|
|
break; |
|
|
break; |
|
|
case 3: |
|
|
case 3: |
|
|
play_game3(); |
|
|
|
|
|
|
|
|
play_milliongame(); |
|
|
break; |
|
|
break; |
|
|
case 4: |
|
|
case 4: |
|
|
printf("Exiting the Game Menu...\n"); |
|
|
printf("Exiting the Game Menu...\n"); |
|
|