Skip to content

Instantly share code, notes, and snippets.

@jshawl jshawl/app.rb
Created Sep 27, 2016

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