Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- puts("Was up ugly , what is your name?")
- name = gets.chomp
- puts(" I don't care and will probably forget, but Welcome to the guessing game #{name}! ")
- number=rand(1..100)
- puts("please guess the number between 1 and your Mom....I mean 1 and 100 ..sorry not sorry")
- winner = false
- while winner==false
- guess=gets.to_i
- if guess>number then
- puts("Its too high Loser. Try again but I will need you to think ...too high")
- elsif guess<number then
- puts("Oh my god...really? You probably go to Lynn University or FAU huh? too low ")
- else
- puts ("Congrats #{name}, you win....nothing ...haha go back to coding !")
- winner = true
- end
- end
Add Comment
Please, Sign In to add comment