G1Joshi / Guess-Game

Home Page:https://g1joshi.github.io/Guess-Game/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Number Guessing Game

Objective

The program generates a random number for the computer.
Thereafter we have to guess the number chosen by the computer.
If we are incorrect it will tell us if we need to go higher or lower.
If we are correct it will confirm that we have won the game.
For this we have atmost 10 chances to guess the number.

Algorithm

πŸš€ The computer choose the random number between 1 to 100.
πŸš€ User inputs number value and presses submit.
πŸš€ Compare the guessed number by the user with the randomly chosen number by the computer.
πŸš€ If the guessed number is greater than the randomly chosen number
    πŸ‘† It will let us know that our choosen number is higher and try again.
πŸš€ If the guessed number is lower than the randomly chosen number
    πŸ‘‡ It will let us know that our choosen number is lower and try again.
πŸš€ If the gussed number is correct
    πŸ‘ Display won message.
πŸš€ If we are out of life
    πŸ‘Ž Display lose message.
πŸš€ End of the game.

About

https://g1joshi.github.io/Guess-Game/


Languages

Language:HTML 46.4%Language:CSS 29.4%Language:JavaScript 24.2%