daniyalsarwar786-guessing-game
v1.0.5
Published
A simple guessing game in oop
Downloads
4
Readme
Guess Master
Welcome to Guess Master, a fun and interactive command-line game where your goal is to guess a secret number between 0 and 10.
Features
- Random Secret Number: Each game generates a random secret number that you need to guess.
- Limited Attempts: You have 3 attempts to guess the correct number.
- Interactive Prompts: The game uses
inquirer
to provide an interactive experience for entering guesses. - Visual Feedback: Utilizes
chalk
andfiglet
for colorful and styled text to enhance user experience. - Hints: Provides hints whether the secret number is higher or lower than your guess.
How to Play
- Start the Game: Run the game using the command
node main.js
(assuming your entry file is namedmain.js
). - Enter Your Guess: When prompted, enter your guess number and press Enter.
- Receive Feedback: The game will tell you if your guess is too high, too low, or correct.
- Repeat: If your guess is incorrect, you'll be prompted to guess again until you either win or run out of attempts.
Installation
To play Guess Master, you need to have Node.js installed on your computer. Once you have Node.js set up, follow these steps:
- Clone the repository to your local machine.
- Navigate to the cloned directory.
- Run
npm install
to install the dependencies (inquirer
,chalk
, andfiglet
).
Dependencies
- Inquirer: For interactive command line user interfaces.
- Chalk: For styling the terminal string.
- Figlet: For creating ASCII Art from text.
Contribution
Feel free to fork the repository, make changes, and submit pull requests. If you find any issues or have suggestions, please open an issue in the repository.
Enjoy playing Guess Master and may the odds be in your favor!