Welcome to the Guessing Game! This game allows players to guess numbers generated by the computer, offering different difficulty levels, dynamic scoring, and a history of the best results.
The game features a main menu with the following options:
- Start New Game
- View Rules
- View Score History
- Exit ๐ช
Players can choose from three difficulty levels:
- Easy: Guess a number between 1 and 50, with 10 attempts.
- Medium: Guess a number between 1 and 100, with 7 attempts.
- Hard: Guess a number between 1 and 200, with 5 attempts.
- Base score by level:
- Easy: 100 points
- Medium: 200 points
- Hard: 300 points
- Deductions: Points are subtracted for each attempt.
- Bonus: +50 points for each unused attempt.
The game keeps track of the last 10 scores in an array, storing the score and the difficulty level chosen for each game.
A special mode where the player must guess a sequence of 3 numbers instead of just one.
Example sequence: [5, 8, 2]
The player must guess each number in the sequence correctly.
Players can request hints for a cost in points:
- Parity Hint (Even/Odd): -10 points
- Range Hint (Upper/Lower Half): -20 points
- Proximity Hint (Hot/Cold): -15 points
The game stores the best scores for each difficulty level.
- Arrays: Used for storing score history and level configurations.
- Loops: A loop is used to keep the main menu active and to handle attempts.
- Conditionals: Used for validating user input and providing appropriate messages based on the player's guess.
