Skip to content

This project showcases a simple yet entertaining number-guessing game. Players choose a number from 1 to 10, attempting to match it with a randomly generated number. It serves as a practical exercise in JavaScript development

License

Notifications You must be signed in to change notification settings

SaraFreitas02/NumGuessGame.js-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Guess the Number Game (js practice)

Project Description

This small web project was created for personal practice and experimentation with JavaScript. It features a basic number-guessing game where users select a number from 1 to 10 to match a randomly generated number. Importantly, this project is intended solely for learning purposes, and you are free to use it as you wish, without any restrictions, obligations, or the need to mention the original creator.

Project Structure

  • index.html: The primary HTML file that defines the webpage structure.
  • script.js: The JavaScript file that handles the game logic.

How to Use

  1. Open the index.html file in a web browser (or click here).
  2. You will see:
    • A header with the title "Guess the number."
    • An input field to choose a number between 1 and 10.
    • A "Guess" button to submit your number.
  3. How to play:
    • Enter a number (from 1 to 10) and click "Guess" to play the game.
    • The game will showcase messages indicating your guess and the generated number.
    • The game will tell you if you won or lost.

Customization

Feel free to customize and modify this project according to your needs. It is provided without any licensing restrictions, allowing you to adapt it for your own purposes or to further your web development skills. There is no requirement to credit the original creator, and you are not bound by any consequences for your usage.

Contributions

You are welcome to make improvements and alterations to this project without any obligations. You can enhance the game, add new features, optimize the code, or use it as a foundation for other projects. The freedom to use and adapt this project is yours to explore.

License

This project is provided under the Unlicense.

What is the Unlicense?

The Unlicense is a public domain dedication tool that allows the creator of a work to effectively relinquish all copyright and related rights to the work. By choosing the Unlicense, I have waived all rights to this code, essentially placing it in the public domain.

What does this mean for you?

You are free to use, modify, distribute, and even relicense this code as you see fit. There are no restrictions, obligations, or the need to mention the original creator. You can use it for personal, commercial, or open-source projects without any legal consequences or licensing concerns.

Responsibility

While I have released this code into the public domain, please be aware that I am not responsible for how you use it. It's your responsibility to ensure that your use of this code complies with all applicable laws and regulations.

Feel free to use this code as a starting point for your projects, experiment with it, or incorporate it into your work without any constraints.

For more details, refer to the Unlicense file in this repository.

About

This project showcases a simple yet entertaining number-guessing game. Players choose a number from 1 to 10, attempting to match it with a randomly generated number. It serves as a practical exercise in JavaScript development

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published