Skip to content

EsaZhu/Guess-My-Number

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guess My Number!

Guess My Number is a game that prompts the user to guess THE number. It generates a random number between 1 and 20 and the user can input their guess until their score turns 0. The game mechanincs use the DOM structure to connect all the variables and elements. A fun silly little game to learn JavaScript, CSS, and HTML.

Languages and Structure

  • HTML: index.html The main HTML file that structures the game's elements.
  • CSS: style.css The CSS file that styles the appearance of the game.
  • JavaScript: script.js The JavaScript file that contains the game's logic and functionality.

Getting Started

To play the game locally on your computer, follow these steps:

  1. Clone the repository using Git.

    • Run the following command in your terminal:
      git clone https://github.com/EsaZhu/Guess-My-Number.git
    • This command will create a new folder named Guess-My-Number in your current directory and download all the files from the GitHub repository into it.
  2. Open the index.html file in your web browser.

    • Once the cloning is complete, navigate into the newly created Guess-My-Number folder in your file explorer.
    • Double-click on the index.html file. This will open the game in your default web browser.

How to Play

  1. Open the index.html file in your browser.
  2. You will see a number guessing game interface.
  3. Enter your guess in the input field.
  4. Click the "Check!" button to submit your guess.
  5. The game will provide feedback on whether your guess is too high, too low, or correct.
  6. Try to guess the secret number within the given range.
  7. You can click the "Again!" button to start a new game with a different secret number.

Screenshot 2025-05-08 215213

Screenshot 2025-05-08 215237

Screenshot 2025-05-08 215300

Contributing

If you have any suggestions or find any issues, feel free to open a pull request or submit an issue on the GitHub repository.

License

This project is likely under the default GitHub terms unless a specific license file is included in the repository.

About

Javascript, HTML, and CSS practice project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published