From ada569514b2b55215cbc81010517f1f4a205c9ce Mon Sep 17 00:00:00 2001 From: krolyxon Date: Fri, 1 Sep 2023 13:11:59 +0530 Subject: exit on hard --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index 2de0f4c..e3b7ed9 100644 --- a/src/main.c +++ b/src/main.c @@ -94,8 +94,8 @@ void decrement_score(Difficulty diff) { printf("Wrong Answer!! The score will be decremented by 20\n"); score -= MEDIUM_SCORE_DECREMENT; } else { - printf("Wrong Answer!! The score will be reseted to 0\n"); - score = 0; + printf(COLOR_RED COLOR_BOLD "Wrong Answer!! You Lose!!" COLOR_OFF); + exit(1); } } -- cgit v1.2.3