Skip to content

nextsaimon/guessing-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guessing Game

A simple web-based number guessing game. The player has to guess a randomly chosen number within a specified range and a limited number of attempts. Each incorrect guess narrows down the range until the player finds the correct answer or runs out of attempts.

Features

  • Set the maximum limit for the number.
  • Choose the number of attempts.
  • Feedback on each guess, including narrowing the guess range.
  • Reset button to start a new game at any time.
  • Simple, clean UI with interactive help.

How to Play

  1. Select a limit (range) for the guessing number.
  2. Select the maximum number of attempts.
  3. Enter a number and click Guess to see if it's correct.
  4. Each incorrect guess will adjust the range hints until you either win or use all your attempts.
  5. Click Reset to start a new game.

Files

  • index.html - Main HTML file for the game interface.
  • script.js - JavaScript file containing game logic.
  • style.css - Optional CSS for additional styling.

Getting Started

To play the game:

  1. Clone this repository:
    git clone https://github.com/username/guessing-game.git
  2. Play the Guessing Game

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors