Skip to content

syssefim/Number-Guessing-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Number Guessing Game

A simple command-line game where the computer randomly selects a number and the user has a limited number of chances to guess it.

This project is based on the Number Guessing Game from roadmap.sh.

๐Ÿš€ Features

  • Randomly generates a target number for the user to guess.
  • Offers three difficulty levels to dictate the number of chances: Easy (10), Medium (5), and Hard (3).
  • Provides interactive feedback, telling the user if the target number is greater or less than their guess.
  • Tracks the number of attempts and calculates the total time elapsed in seconds upon a winning guess.
  • Includes a prompt to easily replay the game after a round finishes.

๐Ÿ“‹ Prerequisites

To run this project, you need to have Node.js installed on your machine. The project also relies on a couple of external packages for the CLI styling and input.

โš™๏ธ Installation

1. Clone the Repository

git clone https://github.com/syssefim/Number-Guessing-Game
cd Number-Guessing-Game

2. Install Dependencies

npm install prompt-sync chalk

3. Run the Application

In your terminal, run:

node main.js

About

JavaScript practice.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors