Guess the Number Game
Create a game called 'Guess the number'. Let us go through the Rules one by one.
1. The computer will generate a Random Number.
2. Ask the user to guess the number in 10 chances.
3. If the user guesses it right, Score him accordingly like if the user guesses in the first chance, the score is 100, in second chance score should be 90, and so on.
If the guess number is greater than the random number give him 'Hint: Choose a Lower Number' or less than the random number give him 'hint: Choose a Higher Number' or if the guess number is equal to random, No need to hint, just display score and end the game.
5. Also show how many chances are left.
6. if the user cannot guess the number, disclose the random number and end the game.
Last updated