Skip to content

Instantly share code, notes, and snippets.

/ruby.rb Secret

Created February 5, 2016 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/27eb3573bae482ede17b to your computer and use it in GitHub Desktop.
Save anonymous/27eb3573bae482ede17b to your computer and use it in GitHub Desktop.
ask_need_instructions
answer = gets.chomp.downcase
while answer != "yes" or "no"
puts "Incorrect command. Please try again."
answer = gets.chomp.downcase
if answer == 'yes'
puts instructions
break
elsif answer == 'no'
start_game
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment