Skip to content

Instantly share code, notes, and snippets.

@jshawl
Created September 27, 2016 19:38
Show Gist options
  • Save jshawl/f4c14db2b07d1efc19f7c4719da69cef to your computer and use it in GitHub Desktop.
Save jshawl/f4c14db2b07d1efc19f7c4719da69cef to your computer and use it in GitHub Desktop.
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