Simple number guessing game to test your luck.
Requirements: https://roadmap.sh/projects/number-guessing-game
1. Clone project
git clone https://github.com/kvartsianyi/roadmap.sh_number_guessing_game_cli.git
2. Open project folder
cd ./number_guessing_game_cli
3. Run the game
npm run start
Output:
#---------------------------------------------#
| |
| Welcome to the Number Guessing Game! |
| I'm thinking of a number between 1 and 100. |
| |
#---------------------------------------------#
Please select the difficulty level:
1. Easy (10 chances),
2. Medium (5 chances),
3. Hard (3 chances)
Enter your choice: