Created
September 27, 2016 19:38
-
-
Save jshawl/f4c14db2b07d1efc19f7c4719da69cef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while true | |
while true | |
puts "press enter" | |
input = gets.chomp | |
break if input != "" | |
end | |
puts "you lose" | |
puts "do you want to play again?" | |
input = gets.chomp | |
if input == "no" | |
puts "goodbye" | |
break | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment