aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorkrolyxon <krolyxon@tutanota.com>2023-09-01 13:11:59 +0530
committerkrolyxon <krolyxon@tutanota.com>2023-09-01 13:11:59 +0530
commitada569514b2b55215cbc81010517f1f4a205c9ce (patch)
tree2b075b764136449039da19520e4cc3a563ef6504 /src/main.c
parentc82d2373da535adf5d407399843aa56149b7280c (diff)
exit on hard
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
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);
}
}