From 7a3948468c9f02dc35d622292c81ba446a51451b Mon Sep 17 00:00:00 2001 From: fdlt3885 Date: Fri, 10 Feb 2023 12:51:06 +0000 Subject: [PATCH] refactoring: final edits to mini-games and quizzes --- src/main/quizproject.c | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/src/main/quizproject.c b/src/main/quizproject.c index 0fedc13..e67107b 100644 --- a/src/main/quizproject.c +++ b/src/main/quizproject.c @@ -2312,8 +2312,6 @@ void b_epic_game() { } -//geography quiz// - void b_WelcomeMessage() { printf("Welcome to the geography quiz game!\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() { char animal[20]; @@ -2390,7 +2387,6 @@ void b_guess_animal() { printf("---Thank you for Playing Guess The Animal---\n\n"); } -//Basketball Quiz void b_basketballQuiz() { @@ -2470,7 +2466,6 @@ void b_basketballQuiz() { } -//Guess the birth year void b_guessbirthyear() { @@ -2478,7 +2473,7 @@ void b_guessbirthyear() int guess; int tries = 0; - printf("Guess the year Barack Obama was born: "); + printf("Guess the year Barack Obama was born in: "); scanf("%d", &guess); while (guess != year) { @@ -2492,11 +2487,10 @@ void b_guessbirthyear() 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() { @@ -2563,7 +2557,6 @@ void b_germanyquiz() } -//Breaking Bad Quiz void b_BreakingBquiz() { int score = 0; @@ -2622,8 +2615,6 @@ void b_BreakingBquiz() { } -//Crossword Puzzle - void b_crossword(){ char word[10] = "C--S-W-RD"; char answer[10] = "CROSSWORD"; @@ -2652,8 +2643,6 @@ void b_crossword(){ } -//Gambling Game - void b_gamble() { int wallet = 100; @@ -2697,8 +2686,6 @@ void b_gamble() } -//History Game - void b_historyevents() { int year, score = 0; @@ -2787,7 +2774,6 @@ void b_personality() { } -//Guess the celebrity void b_celebrity(){ char name[20]; @@ -2832,8 +2818,6 @@ void b_celebrity(){ } -//Hangman - void b_hangman() { char word[MAX_LEN + 1]; char display[MAX_LEN + 1]; @@ -2896,8 +2880,6 @@ void b_hangman() { } -//Football Quiz - void b_football() { int score = 0; char answer[20]; @@ -3569,10 +3551,10 @@ int main(int argc, char *argv[]) { printf("19. Mini-Game: History Quiz!\n"); printf("20. All About Space and the Universe!\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("Enter your choice: "); scanf("%d", &choice);