akashrajakku / Number_Guessing-Game

A number guessing game made with help of javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Number_Guessing-Game

A number guessing game made with help of javascript

Rules Of the game

  1. Program will generate a random number between 1 and 100
  2. User will try to guess that number
  3. Each turn user will get 10 chances to guess the random number
  4. 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
Screenshot 2024-01-08 031655

Validating, whether the input given by user is a number between 1 and 100 or not ?
Screenshot 2024-01-08 031739
Screenshot 2024-01-08 031758
Hints are given to assist players in guessing the number easily:
Screenshot 2024-01-08 051814 Screenshot 2024-01-08 051739 Screenshot 2024-01-08 051757 Screenshot 2024-01-08 051814

Once user can't guess the number in 10 attempts, they lose the game and are offered a chance to start a new game
Screenshot 2024-01-08 032225

And when User correctly guess the correct number !!! BINGO
image

Why not challenge yourself and give it a try !!!

https://www.hackerrank.com/gcet-hackwithinfy-ds-ai-1709956390

About

A number guessing game made with help of javascript


Languages

Language:JavaScript 51.1%Language:CSS 30.4%Language:HTML 18.5%