Skip to content

Instantly share code, notes, and snippets.

@hay
Created November 14, 2018 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hay/de46fe2e83f53a65072c1fafcd98a394 to your computer and use it in GitHub Desktop.
Save hay/de46fe2e83f53a65072c1fafcd98a394 to your computer and use it in GitHub Desktop.
Hey, welcome to Number Guessr
Please state your name Hay
Welcome Hay! You'll have 5 tries to guess a number
The number will be between 1 and 100
You have 5 guesses remaining
What's your guess? 50
50 is not correct, the number is lower
You have 4 guesses remaining
What's your guess? 25
25 is not correct, the number is higher
You have 3 guesses remaining
What's your guess? 37
37 is not correct, the number is lower
You have 2 guesses remaining
What's your guess? 31
YES! The number was 31!
Good job Hay! You did it in 4 tries.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment