|
@ -2312,8 +2312,6 @@ void b_epic_game() { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//geography quiz// |
|
|
|
|
|
|
|
|
|
|
|
void b_WelcomeMessage() { |
|
|
void b_WelcomeMessage() { |
|
|
printf("Welcome to the geography quiz game!\n"); |
|
|
printf("Welcome to the geography quiz game!\n"); |
|
|
printf("Let's test your knowledge of geography!\n"); |
|
|
printf("Let's test your knowledge of geography!\n"); |
|
@ -2356,7 +2354,6 @@ void b_play_geography(){ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Guess animal Game |
|
|
|
|
|
|
|
|
|
|
|
void b_guess_animal() { |
|
|
void b_guess_animal() { |
|
|
char animal[20]; |
|
|
char animal[20]; |
|
@ -2390,7 +2387,6 @@ void b_guess_animal() { |
|
|
printf("---Thank you for Playing Guess The Animal---\n\n"); |
|
|
printf("---Thank you for Playing Guess The Animal---\n\n"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//Basketball Quiz |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void b_basketballQuiz() { |
|
|
void b_basketballQuiz() { |
|
@ -2470,7 +2466,6 @@ void b_basketballQuiz() { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//Guess the birth year |
|
|
|
|
|
|
|
|
|
|
|
void b_guessbirthyear() |
|
|
void b_guessbirthyear() |
|
|
{ |
|
|
{ |
|
@ -2478,7 +2473,7 @@ void b_guessbirthyear() |
|
|
int guess; |
|
|
int guess; |
|
|
int tries = 0; |
|
|
int tries = 0; |
|
|
|
|
|
|
|
|
printf("Guess the year Barack Obama was born: "); |
|
|
|
|
|
|
|
|
printf("Guess the year Barack Obama was born in: "); |
|
|
scanf("%d", &guess); |
|
|
scanf("%d", &guess); |
|
|
|
|
|
|
|
|
while (guess != year) { |
|
|
while (guess != year) { |
|
@ -2492,11 +2487,10 @@ void b_guessbirthyear() |
|
|
tries++; |
|
|
tries++; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
printf("Correct! It took you %d tries to guess the year.\n", tries); |
|
|
|
|
|
|
|
|
printf("Correct! It took you %d tries to guess the year Barack Obama was born in.\n", tries); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//Germany Quiz |
|
|
|
|
|
|
|
|
|
|
|
void b_germanyquiz() |
|
|
void b_germanyquiz() |
|
|
{ |
|
|
{ |
|
@ -2563,7 +2557,6 @@ void b_germanyquiz() |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//Breaking Bad Quiz |
|
|
|
|
|
|
|
|
|
|
|
void b_BreakingBquiz() { |
|
|
void b_BreakingBquiz() { |
|
|
int score = 0; |
|
|
int score = 0; |
|
@ -2622,8 +2615,6 @@ void b_BreakingBquiz() { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Crossword Puzzle |
|
|
|
|
|
|
|
|
|
|
|
void b_crossword(){ |
|
|
void b_crossword(){ |
|
|
char word[10] = "C--S-W-RD"; |
|
|
char word[10] = "C--S-W-RD"; |
|
|
char answer[10] = "CROSSWORD"; |
|
|
char answer[10] = "CROSSWORD"; |
|
@ -2652,8 +2643,6 @@ void b_crossword(){ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Gambling Game |
|
|
|
|
|
|
|
|
|
|
|
void b_gamble() |
|
|
void b_gamble() |
|
|
{ |
|
|
{ |
|
|
int wallet = 100; |
|
|
int wallet = 100; |
|
@ -2697,8 +2686,6 @@ void b_gamble() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//History Game |
|
|
|
|
|
|
|
|
|
|
|
void b_historyevents() { |
|
|
void b_historyevents() { |
|
|
int year, score = 0; |
|
|
int year, score = 0; |
|
|
|
|
|
|
|
@ -2787,7 +2774,6 @@ void b_personality() { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//Guess the celebrity |
|
|
|
|
|
|
|
|
|
|
|
void b_celebrity(){ |
|
|
void b_celebrity(){ |
|
|
char name[20]; |
|
|
char name[20]; |
|
@ -2832,8 +2818,6 @@ void b_celebrity(){ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Hangman |
|
|
|
|
|
|
|
|
|
|
|
void b_hangman() { |
|
|
void b_hangman() { |
|
|
char word[MAX_LEN + 1]; |
|
|
char word[MAX_LEN + 1]; |
|
|
char display[MAX_LEN + 1]; |
|
|
char display[MAX_LEN + 1]; |
|
@ -2896,8 +2880,6 @@ void b_hangman() { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Football Quiz |
|
|
|
|
|
|
|
|
|
|
|
void b_football() { |
|
|
void b_football() { |
|
|
int score = 0; |
|
|
int score = 0; |
|
|
char answer[20]; |
|
|
char answer[20]; |
|
@ -3569,10 +3551,10 @@ int main(int argc, char *argv[]) { |
|
|
printf("19. Mini-Game: History Quiz!\n"); |
|
|
printf("19. Mini-Game: History Quiz!\n"); |
|
|
printf("20. All About Space and the Universe!\n"); |
|
|
printf("20. All About Space and the Universe!\n"); |
|
|
printf("21. Brain whiz\n"); |
|
|
printf("21. Brain whiz\n"); |
|
|
printf("22. Personality Quiz!\n"); |
|
|
|
|
|
printf("23. Guess the Celebrity!\n"); |
|
|
|
|
|
printf("24. Hangman!\n"); |
|
|
|
|
|
printf("25. Football Quiz!\n"); |
|
|
|
|
|
|
|
|
printf("22. Mini-Game: Personality Quiz!\n"); |
|
|
|
|
|
printf("23. Mini-Game: Guess the Celebrity!\n"); |
|
|
|
|
|
printf("24. Mini-Game: Hangman!\n"); |
|
|
|
|
|
printf("25. Mini-Game: Football Quiz!\n"); |
|
|
printf("26. Exit\n"); |
|
|
printf("26. Exit\n"); |
|
|
printf("Enter your choice: "); |
|
|
printf("Enter your choice: "); |
|
|
scanf("%d", &choice); |
|
|
scanf("%d", &choice); |
|
|