A number guessing game made with help of javascript
Rules Of the game
- Program will generate a random number between 1 and 100
- User will try to guess that number
- Each turn user will get 10 chances to guess the random number
- Hint will be given by the program by analysing whether the number entered by user is High, Low, too High or too Low compared to the random number
The User Interface of the program
Validating, whether the input given by user is a number between 1 and 100 or not ?
Hints are given to assist players in guessing the number easily:
Once user can't guess the number in 10 attempts, they lose the game and are offered a chance to start a new game
And when User correctly guess the correct number !!! BINGO
Why not challenge yourself and give it a try !!!
https://www.hackerrank.com/gcet-hackwithinfy-ds-ai-1709956390