You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The **Number Guessing Game** is a simple yet engaging interactive program that challenges users to identify a randomly generated number between **1 and 100** within **10 attempts**. The game provides instant feedback to help users refine their guesses. The game ends when the number is correctly guessed or when all attempts are used up, with an option to restart and play again.
5
+
6
+

7
+
8
+
## Features
9
+
- 🎲 **Random Number Generation** - A new number is generated for every session.
10
+
- 🔍 **Feedback System** - Displays whether the guess is too high, too low, or correct.
11
+
- 📋 **Previous Guesses** - Keeps track of past attempts for better decision-making.
12
+
- 🔄 **Game Reset Functionality** - Allows users to start a new game without refreshing the page.
13
+
- 🎨 **User-Friendly Interface** - A visually appealing and responsive design for an enjoyable experience.
14
+
- 📱 **Mobile Compatibility** - Adjusts layout and usability across different screen sizes.
15
+
16
+
## Files Included
17
+
- 📄 `index.html` - The main HTML file that structures the game’s layout.
18
+
- 🎨 `style.css` - The stylesheet that controls the visual design.
19
+
- 📜 `script.js` - JavaScript code that handles game logic and user interaction.
20
+
- 📜 `LICENSE` - Information on permissions and usage rights.
21
+
- 📄 `icons8-close.svg` - A close button icon used in modal elements.
22
+
23
+
## How to Play
24
+
1. 🖥️ Open `index.html` in a web browser.
25
+
2. 🔢 Enter a guess (between 1 and 100) in the input field.
26
+
3. 🎯 Click **SUBMIT GUESS** to check your input.
27
+
4. 📊 The game will indicate if the guess is too high, too low, or correct.
28
+
5. ⏳ Keep guessing until either:
29
+
- You find the correct number 🎉
30
+
- You reach the maximum of 10 attempts and see a **Game Over** message 😞
31
+
6. 🔄 Click **Start New Game** to reset and play again.
32
+
33
+
## Technologies Used
34
+
- 🌐 **HTML** - Defines the structure of the webpage.
35
+
- 🎨 **CSS** - Styles the game interface and enhances user experience.
36
+
- ⚡ **JavaScript** - Controls game logic, user interaction, and animations.
37
+
38
+
## Additional Enhancements
39
+
- 🏃♂️ **Smooth Animations** - Enhances the look and feel of the game.
40
+
- 🎭 **Interactive Elements** - Buttons and inputs respond dynamically to user actions.
41
+
- 🔍 **Input Validation** - Ensures guesses are within the allowed range.
42
+
- 📏 **Responsive Design** - Adapts to different screen sizes for an optimal experience.
43
+
44
+
## Future Enhancements
45
+
- 🔊 **Sound Effects** - Add feedback sounds for winning, losing, and incorrect guesses.
46
+
- 🎚️ **Difficulty Levels** - Allow players to choose different number ranges.
47
+
- 🏆 **Leaderboard System** - Track and display top scores and attempts.
48
+
- 🌍 **Multiplayer Mode** - Compete with friends in a turn-based challenge.
49
+
50
+
## Author
51
+
Developed by **Mayank Raj**.
52
+
For more projects, visit [GitHub Profile](https://github.com/mayank-0103).
53
+
54
+
## License
55
+
This project follows the terms specified in the `LICENSE` file.
0 commit comments