Browse Source

Refactoring: Added FoL questions and end message

main
fdlt3859 2 years ago
parent
commit
9058240d54
  1. 7
      src/main/quizproject.c

7
src/main/quizproject.c

@ -442,9 +442,11 @@ void v_factorlie(void){
"Tomatoes are fruits.", // fact "Tomatoes are fruits.", // fact
"The Great Wall of China is visible from space.", // lie "The Great Wall of China is visible from space.", // lie
"Water freezes at 0 degrees Celsius.", // fact "Water freezes at 0 degrees Celsius.", // fact
"Napoleon Bonaparte ruled Germany at a time in history.", // fact
"Barack Obama was born in America." // lie
}; };
char answers[] = {'F','L','F'}; // L for lie, F for fact
char answers[] = {'F','L','F','F','L'}; // L for lie, F for fact
int num_statements = sizeof(statements) / sizeof(statements[0]); int num_statements = sizeof(statements) / sizeof(statements[0]);
int score = 0; int score = 0;
@ -472,6 +474,9 @@ void play_factorlie() {
printf("Playing Fact or Lie!\n"); printf("Playing Fact or Lie!\n");
printf("**********************\n"); printf("**********************\n");
v_factorlie(); v_factorlie();
printf("**********************************\n");
printf("Thank you for playing Fact or Lie!\n");
printf("**********************************\n");
} }
void play_milliongame() { void play_milliongame() {

Loading…
Cancel
Save