DEV Community

Cover image for Guess My number
Mohammed Afthab
Mohammed Afthab

Posted on

Guess My number

Hey Dev.to community! πŸ‘‹ I'm excited to share a fun and interactive project I've been working on: the Guess My Number Game. In this post, I'll give you a sneak peek into the game and show you how to play it. Let's dive right in!

About the Project
The Guess My Number Game is a simple yet engaging game built using JavaScript and DOM manipulation. It's a great way to practice your programming skills while having fun at the same time! The game randomly selects a secret number between 1 and 20, and your goal is to guess that number within a limited number of attempts.

How to Play
Playing the game is a breeze:

The computer selects a secret number between 1 and 20.
You input your guess in the provided field.
After each guess, you'll receive a hint about whether your guess is too high or too low.
Keep guessing until you get it right or run out of attempts.
Features
πŸ”’ Number Guessing: Put your intuition to the test by guessing the secret number.

πŸ’‘ Hints: Receive helpful hints after each guess to guide you towards the correct answer.

πŸŽ‰ Winning: Celebrate when you guess the correct number and see if you can beat your highscore!

How to Play
Clone the repository to your local machine:

git clone https://github.com/MohammedAfthab18/guess-my-number.git

Top comments (0)