1.0.1 • Published 1 year ago

ts-01-guessinggame v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

TypeScript-project01_Random Number Generated

TS Project 01 – Number Guessing Game:

Description:

This guess the number game is a short TypeScript/Node.js project that allows the user to guess the number generated by the computer. There are also several ways to alter the game, like adding more rounds or displaying the score. It’s quite simple and uses the random function to generate a number.

screen shot of terminal

screen shot of terminal

What we know from the description:

  1. Number Game.
  2. Console based
  3. Computers generate number with random function
  4. Users guess the number
  5. Check / compare the input of user with computer generated number
  6. Add Rounds
  7. Display score

Project / Game Flow:

  1. Welcome message.
  2. Starting round message
  3. Computers generate number
  4. Set the Round Number to 0
  5. Set the score to 0
  6. Ask user to enter his guess “Please enter your Guess between 1 – 100.”

  7. Compare the guess and show result accordingly

  8. Check the Round Number

  9. Ask user if he is wanting to play again a. If yes move back to 2 steps b. Else exit the game/ end the game.