Skip to content

This web application presents users with a fun number guessing challenge. The game randomly selects a secret number between 1 and 100, and players must try to guess it correctly with the fewest attempts possible.

Notifications You must be signed in to change notification settings

kamesh07032005/Javascript-Guess-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Number Guessing Game

A simple interactive number guessing game built with HTML, CSS, and JavaScript.

Description

This web application presents users with a fun number guessing challenge. The game randomly selects a secret number between 1 and 100, and players must try to guess it correctly with the fewest attempts possible.

Features

  • Clean, responsive user interface
  • Score tracking system (gain 5 points for correct guesses, lose 1 point for incorrect guesses)
  • Attempts counter to track performance
  • Helpful hints that guide the player (higher/lower feedback)
  • New Game button to restart without refreshing the page
  • Input validation to ensure proper gameplay
  • Support for keyboard input (Enter key)

How to Play

  1. Enter your guess in the input field
  2. Click "Check" or press Enter
  3. Receive feedback and adjust your next guess accordingly
  4. Try to find the number with the fewest attempts
  5. Start a new game at any time with the "New Game" button

Technologies Used

  • HTML5
  • CSS3
  • JavaScript (ES6)

Future Improvements

  • Difficulty levels
  • High score tracking
  • Sound effects
  • Animations for correct guesses
  • Multiplayer option

image

Feel free to fork this repository and make your own improvements!

About

This web application presents users with a fun number guessing challenge. The game randomly selects a secret number between 1 and 100, and players must try to guess it correctly with the fewest attempts possible.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages