Skip to content

MuhammedSuhaib/Guess-the-Number-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guess the Number Game

Welcome to the Guess the Number Game! This is a console-based game written in JavaScript using Node.js where the player tries to guess a randomly generated number between 1 and 6.


How to Play

  1. The program generates a random number between 1 and 6.
  2. The player enters a guess via the console.
  3. After each guess, the program provides feedback:
    • Correct: You've guessed the number!
    • Wrong: Try again!
  4. The game tells you whether your guess was correct or wrong.

Features

  • Generates a random number between 1 and 6.
  • Uses inquirer for user input and chalk for colorful output.
  • Displays a fun banner using the node-banner and chalk-animation libraries.

Requirements

  • Node.js (version 10 or higher)
  • Install dependencies using:
    npm install

Installation

  1. Clone the repository:

https://github.com/MuhammedSuhaib/Guess-the-Number-Game.git

cd Guess-the-Number-Game

2. Install dependencies:  
```bash  
npm install  
  1. Run the game:
    node index.js  

About

A CLI Number Guessing Game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published