Skip to content

Instantly share code, notes, and snippets.

@rajivnarayana
Last active February 2, 2023 06:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rajivnarayana/13efb9c399b0c5c6601684d1d06b8fb7 to your computer and use it in GitHub Desktop.
Save rajivnarayana/13efb9c399b0c5c6601684d1d06b8fb7 to your computer and use it in GitHub Desktop.
Number Guessing Game

1 Start

You can start guessing and you would find out if your guess was higher or lower than the chosen number.

Example: if the chosen number was 43 and your guesses were

Guess Description
50 Try lower
25 Try higher
37 Try higher

2 Guesses

3 InvalidGuess

Or you win the game by guessing the correct number based on your previous guesses.

4 Final

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment