Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aymen016/-simple-number-guessing-game-in-javascript-


https://github.com/aymen016/-simple-number-guessing-game-in-javascript-

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# 🎉 Welcome to the Guessing Game! 🎲

Welcome to the **Guessing Game**! This simple, interactive game will let you test your guessing skills. Try to guess the correct number within the given range. Are you ready to start? 🕹ī¸

## 📋 Instructions

1. **Set a Maximum Number**:
- Upon launching, you'll be asked to set a maximum number.
- This defines the range (from 1 up to your chosen max number) for the number you need to guess.

2. **Start Guessing**:
- Enter your guesses when prompted.
- The game will give you hints if your guess is too high or too low. 📈📉
- If you want to quit the game, simply type `q` at any point. đŸšĒ

3. **Winning the Game**:
- Once you guess the correct number, you'll get a congratulatory message along with the number of attempts it took! 🎊

## 📂 Files

- **index.html**: The main HTML file with basic styling and game structure.
- **game.js**: Contains the JavaScript logic for the guessing game.

## 🚀 Getting Started

1. **Clone the repository**:
```bash
git clone

2. **Open `index.html`** in your browser to start playing!

## đŸ–ŧī¸ Screenshot


Screenshot of Guessing Game

## 🔧 Technologies Used

- **HTML**: Structure of the web page.
- **CSS**: Basic styling to make it look nice.
- **JavaScript**: Game logic and interactivity.

## 🐛 Troubleshooting

- **Invalid Guess**: If you enter anything other than a number, the game will prompt you to enter a valid guess.
- **Quitting**: Type `q` to quit the game anytime.