-
-
Save anonymous/27eb3573bae482ede17b 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
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