kaushikc005 / Guess_the_number

A guess the number using HTML,CSS and Javascript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Guess the number

The game is based on HTML,CSS and javascript and takes numbers as input.

Description

This project is made as a game,where the user needs to guess a number between 1 and 100. The Number of attempts depends upon the level chosen as there are two levels avilable, easy(10 attempts) & hard(5 attempts).

Rules

1.The challenge is to guess a randomly generated number between 1 and 100.

2.The user can choose between two available game level: Easy & Hard. Easy level provides 10 attempts while Hard level provides 5 attempts for the guessing.

3.The input gets disabled either if the user guesses the number correctly or the attempts are over.

4.There is a new game button which when clicked will restart the game and the user will need to begin by choosing the desired level again.

Run Locally

Clone the project

  git clone https://github.com/kaushikc005/Guess_the_number.git

Go to the project directory and open the index.html in any web browser.

About

A guess the number using HTML,CSS and Javascript.


Languages

Language:CSS 41.4%Language:JavaScript 38.6%Language:HTML 20.0%