Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devmianharoon/number-guessing-game
https://github.com/devmianharoon/number-guessing-game
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/devmianharoon/number-guessing-game
- Owner: devmianharoon
- Created: 2023-10-11T10:28:40.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-11T10:49:37.000Z (about 1 year ago)
- Last Synced: 2023-10-11T16:38:16.486Z (about 1 year ago)
- Language: TypeScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Number Guessing Game
This is a simple number guessing game implemented in TypeScript using the `inquirer` package. In this game, the player is asked to guess a random number between 0 and 9. The player's score increases for each correct guess. The game continues until the player chooses to exit.
## Prerequisites
Before you can play the game, you need to have Node.js installed on your system.
- Node.js: [Download and Install Node.js](https://nodejs.org/)
## Installation
1. Clone the repository to your local machine:
`git-clone https://github.com/devmianharoon/number-guessing-game.git`
2. Navigate to the project directory:
`cd number-guessing-game`
3. Install the required dependencies:
`npm install`## Usage
To start the game, follow these steps:1. Run the game using Node.js
`node index.js`
2. You will be presented with two options: "Play" and "Exit." Choose "Play" to start the game or "Exit" to exit.
3. If you select "Play," you will be asked to enter a number between 0 and 9. Try to guess the correct number!
4. If you guess the correct number, your score will increase, and the game will continue. If your guess is incorrect, you'll receive feedback, and you can continue guessing.
5. If you wish to exit the game, choose "Exit" when prompted.
6. The game will keep running until you choose to exit.## Features
* Simple and fun number guessing game.
* Keeps track of your score.
* Provides feedback on whether your guess is correct or incorrect.
* Option to exit the game when you're done playing.## Contributing
If you'd like to contribute to this project, please fork the repository, make your changes, and submit a pull request. We welcome any improvements, bug fixes, or new features.
## Acknowledgments
* This game was created as a simple educational project.
* Special thanks to the inquirer package for enabling interactive command-line prompts.## Authour
## devmianharoon
* `https://github.com/devmianharoon`