AlessandroJuleo / Sherlock-Numerical

0 stars 1 forks source link

Guess the Number Game

Description

The "Guess the Number Game" is a simple and fun web game where users try to guess a randomly generated number between 1 and 100. It's a great way to test your luck and challenge your intuition. This project aims to provide a playful experience, where users receive feedback if their guess is too high or too low until they find the correct number. Once the number is guessed, the player can start a new game and continue the fun.

User Story

As a user, I want to play a guess the number game, so that I can test my luck and have fun.

Acceptance Criteria

GIVEN a web game,

THEN the user is presented with a landing page containing a form with a label and an input for the guessing number.

GIVEN the game randomly generates a number between 1 and 100,

WHEN the user tries to submit a form without a number,

THEN the user is presented with a message that prompts them to complete the form.

WHEN the user submits the form,

THEN the number is stored in local storage.

WHEN the guess is correct,

THEN a winning message is displayed.

WHEN the guess is incorrect,

THEN the user is informed whether their guess is too high or too low.

THEN the user can continue guessing until they guess correctly.

WHEN the user guesses the number correctly,

THEN there is a button to start a new game.

Technologies Used

HTML: Structuring the webpage and user interface.

CSS: Styling the game elements to make it visually appealing.

JavaScript: Implementing the game logic, generating random numbers, and providing user feedback.

How to Play

Enter a number between 1 and 100 in the input field.

Click the "Submit" button to make your guess.

The game will tell you if the correct number is higher or lower than your guess.

Keep guessing until you find the correct number.

When you guess correctly, you will receive a winning message, and you can click "Play Again" to start a new game.

Features

Random number generation between 1 and 100.

User feedback on whether the guess is too high or too low.

Tracking the number of attempts to guess correctly.

Option to start a new game after a correct guess.

Installation

To run the game locally:

Clone the repository: git clone

Open index.html in your browser to start playing.

Credits

Developed by Coffee Coders.

License

This project is licensed under the MIT License.

Contact

For any questions or suggestions, feel free to reach out:

Email: contact@coffeecoders.com

Social Media: Find us on Instagram, Facebook, and X (formerly Twitter).