Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nikumu authored Oct 17, 2024
1 parent 61a9c5a commit c38ac74
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,23 @@

Game based on a guessing system, where the player has a limited number of attempts to guess a random number. Each incorrect attempt 'eliminates' a brain cell, and the player loses when all brain cells are depleted.

### Explanation:
## Explanation:

* The player has 5 attempts to guess a random number between 1 and 10.
### 1. Difficulty levels:

* Each time the player guesses incorrectly, they lose a 'brain cell' (an attempt).
* The player can choose between three levels:

* If the player guesses correctly before losing all brain cells, they win.
* Easy: Number between 1 and 10, 7 attempts.
* Medium: Number between 1 and 20, 5 attempts.
* Hard: Number between 1 and 50, 3 attempts.
* The selected difficulty level defines the range of the number to guess and the number of available attempts.

* If the player cannot guess the correct number within 5 attempts, the game ends,
and the correct number is revealed.
### 2. Scoring system:

* The score is calculated based on the remaining attempts. The more brain cells (attempts) the player has left at the end, the higher the score.
* Formula: (remaining attempts * 50) / initial attempts.

With these changes, the game offers a greater challenge and encourages the player to maintain as many "brain cells" as possible to achieve a high score!

### To compile the C++ code:
```
Expand Down

0 comments on commit c38ac74

Please sign in to comment.