Skip to content

A simple JavaScript game challenging players to guess a randomly generated number between 1 and 20.

License

Notifications You must be signed in to change notification settings

TSWanniarachchi/guess-my-number

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guess My Number Game

Description

Welcome to Guess My Number Game! This project is a simple JavaScript game where players are challenged to guess a randomly generated number between 1 and 20. Test your intuition and aim for the high score!

How to Play

  1. Open the index.html file in your browser.
  2. Enter your guess in the input field provided.
  3. Click the "Check" button to see if your guess is correct.
  4. Receive feedback on whether your guess is too high, too low, or correct.
  5. Try to guess the correct number in as few attempts as possible to set a high score.
  6. Click the "Again!" button to restart the game and try to beat your high score.

Features

  • Randomly generated number between 1 and 20 for the player to guess.
  • Feedback on whether the guess is too high, too low, or correct.
  • Option to restart the game and hold the previous highscore.

Technologies Used

  • HTML
  • CSS
  • JavaScript

Getting Started

To run the game locally, follow these steps:

  1. Clone this repository to your local machine.
  2. Open the index.html file in your web browser.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Disclaimer

This game is created for educational and entertainment purposes only. The code provided is open-source, and you are free to use, modify, and distribute it as per the license agreement.

Enjoy playing the game! 👩🏻‍💻

About

A simple JavaScript game challenging players to guess a randomly generated number between 1 and 20.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published