Advertisement
Guest User

Untitled

a guest
Feb 5th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.26 KB | None | 0 0
  1. ask_need_instructions
  2. answer = gets.chomp.downcase
  3. while answer != "yes" or "no"
  4.   puts "Incorrect command. Please try again."
  5.   answer = gets.chomp.downcase
  6.   if answer == 'yes'
  7.     puts instructions
  8.     break
  9.   elsif answer == 'no'
  10.     start_game
  11.   end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement