From 9058240d5425c0daaa88cdf522c5793d7006c8e0 Mon Sep 17 00:00:00 2001 From: fdlt3859 Date: Mon, 30 Jan 2023 15:35:01 +0000 Subject: [PATCH] Refactoring: Added FoL questions and end message --- src/main/quizproject.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/quizproject.c b/src/main/quizproject.c index c93ba5f..9b9652d 100644 --- a/src/main/quizproject.c +++ b/src/main/quizproject.c @@ -442,9 +442,11 @@ void v_factorlie(void){ "Tomatoes are fruits.", // fact "The Great Wall of China is visible from space.", // lie "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 score = 0; @@ -472,6 +474,9 @@ void play_factorlie() { printf("Playing Fact or Lie!\n"); printf("**********************\n"); v_factorlie(); + printf("**********************************\n"); + printf("Thank you for playing Fact or Lie!\n"); + printf("**********************************\n"); } void play_milliongame() {