exit on hard

This commit is contained in:
krolyxon 2023-09-01 13:11:59 +05:30
parent c82d2373da
commit ada569514b
2 changed files with 10 additions and 10 deletions

View File

@ -6,7 +6,8 @@ The game has 3 difficulty modes:
3. **Hard**: You lose the game when you make a single wrong guess.
## Levels
- There are total 10 levels and the number of elements the list has depends upon it. The levels are as follows:
- There are total 10 levels and the number of elements the list has depends upon it.
- When you reach the level 10 and make the right guess, You win the game.
| Level | Elements |
|-------|----------|
@ -21,7 +22,7 @@ The game has 3 difficulty modes:
| 9 | 29 Elements |
| 10 | 32 Elements |
At the moment the score system is useless, and doesnt really make a difference on the gameplay, but i do plan on adding features, such as high score.
At the moment the score system is useless, and doesn't really make a difference on the gameplay, but i do plan on adding features, such as high score.
# TODO
- [x] Algorithms to be implemented:
@ -29,8 +30,7 @@ At the moment the score system is useless, and doesnt really make a difference o
- [x] SelectionSort
- [x] InsertionSort
- [x] Radix Sort
- [ ] Score system
- [x] Implement Score system
- [ ] Make the score system somewhat useful
- [ ] Code Refactoring/Cleaning

View File

@ -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);
}
}