From 86032d575ffe1aab65625c9d8588ee4780d1151f Mon Sep 17 00:00:00 2001 From: fdlt3914 Date: Mon, 23 Jan 2023 11:05:29 +0000 Subject: [PATCH] added displayLifeLine Instruction function --- src/main/quizproject.c | 7 +++++++ src/main/quizproject.h | 1 + 2 files changed, 8 insertions(+) diff --git a/src/main/quizproject.c b/src/main/quizproject.c index 978b62c..8d4e1d0 100644 --- a/src/main/quizproject.c +++ b/src/main/quizproject.c @@ -43,11 +43,18 @@ void displayGameInstructions(char name[]) { printf("\t\tYou may lose the game if not you don't have enough points to pass to the next round.\n\n"); printf("\t\tIf you use a lifeline and still choose the wrong answer, you lose the game.\n"); } +void displayLifelineInstructions(void) { + printf("\t\t>>You have the following lifelines available:<< \n"); + printf("\t\t>>'F' 50-50: Eliminates two incorrect answers.<< \n"); + printf("\t\t>>'H' Hint: Reveals a hint for the answer.<<\n"); +} + int main(){ displayWelcomeMessage(); + displayLifelineInstructions(); return 0; } diff --git a/src/main/quizproject.h b/src/main/quizproject.h index 1d491f5..484583d 100644 --- a/src/main/quizproject.h +++ b/src/main/quizproject.h @@ -3,5 +3,6 @@ void displayWelcomeMessage(void); void displayGameInstructions(char name[]); +void displayLifelineInstructions(void); #endif