Skip to content

Instantly share code, notes, and snippets.

@hay hay/resit-1
Created Nov 14, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.