Welcome to SecretNumGame! An interactive game where you try to guess a secret number between 1 and 10! 🎲
This project combines learning and fun, utilizing HTML, CSS, and JavaScript to demonstrate essential web development concepts.
The SecretNumGame follows a simple yet effective architecture, highlighting key web development principles.
- 🏗️ HTML: Defines the basic structure of the interface, such as buttons and messages.
- 🎨 CSS: Ensures a stylish and responsive design.
- 🛠️ JavaScript: Manages game logic, random number generation, and user interactivity.
- 🔄 Dynamic Interactivity: DOM manipulation to update messages and attempt counters in real-time.
- 🎲 Random Number Generator: Ensures a unique number for each round.
- 🔃 Game Reset: Allows you to start a new round with a single click.
- 🎯 Number Guessing: Try to guess the secret number between 1 and 10.
- 🕵️♂️ Hint System: Get feedback if the secret number is higher or lower.
- 📊 Attempt Tracker: See how many tries it took to guess correctly.
- 🔄 Quick Reset: Restart the game with one click.
- 🎤 Text-to-Speech: Hints are narrated using the ResponsiveVoice.js library.
- 🎲 Choose a number between 1 and 10 in the input field.
- 🖱️ Click "Guess" to submit your attempt.
- 🔍 Get hints like "The secret number is higher" or "The secret number is lower."
- 🏆 Keep trying until you guess the number.
- 🔄 Click "New Game" to restart.
-
Clone the repository:
git clone https://github.com/yourusername/SecretNumGame.git
-
Navigate to the project directory:
cd SecretNumGame
-
Open the
index.html
file in your browser to start playing!
- 🏗️ HTML (
index.html
): Basic game structure. - 🎨 CSS (
style.css
): Modern, responsive styling. - 🛠️ JavaScript (
app.js
): Handles logic, random number generation, and interactivity.
- 🎲 Random Generation: Each round starts with a new secret number.
- 🔄 Dynamic Reset: All variables and interface elements are reset for a new game.
- 📋 Lists: Arrays are used to prevent repeated numbers.
Want to improve this project? Follow these steps to contribute:
- 🍴 Fork the repository.
- 🛠️ Create a branch for your feature:
git checkout -b my-new-feature
- ✍️ Commit your changes:
git commit -m "Add new feature"
- 📤 Push to the remote repository:
git push origin my-new-feature
This project is licensed under the MIT License.
- Replace the placeholder links with real images from your project.
- Add screenshots or GIFs to demonstrate the gameplay.
- Use a custom logo or banner image at the top of the README.