This game is a simple guessing game where the user tries to guess a secret number. The computer will give hints to the user if the secret number is higher or lower than the guess.
- Ask the player what the lowest and highest possible secret number should be. Store the limits in variables called
lowest
andhighest
. - Generate a random number from
lowest
tohighest
calledsecret
. - Read a guess from the player and tell them if the secret number is higher or lower than the guess.
- Repeat step 4 until the player guesses the secret number.
- When the player wins, show the number of guesses they made.
- Stop players from entering invalid input (e.g. text or empty lines).
- When the player doesn't give a
highest
orlowest
value, use default values. - Add a leaderboard to the game. The leaderboard should keep track of the top 10 scores and display them at the end of the game.