Created
January 31, 2011 07:42
-
-
Save jah2488/803748 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
#!/usr/bin/env ruby | |
@me = { :feelings => "unhappy", :career => "left", :cares => "for us"} | |
@you = {:feelings => "confused", :career => "right", :cares => "for me"} | |
@relationship = {:memories => 458000000000, :we => "gave it our best shot", :but => "We are going in different directions", :whats_best => "We should go our seperate ways" } | |
def working_relationship(response) | |
words = response.sub("."," ") | |
words = words.split(" ") | |
for word in words | |
say = case word | |
when "sad" : "I'm sorry that your sad, but you'll be okay. I don't blame you for feeling that way." | |
when "confused" : "I'm confused as well, but we both know that this is for the best." | |
when "angry" : "I've never wanted you to be angry, but you have to see that I'm thinking of whats best for you." | |
when "idk" : "Thats understandable." | |
end | |
if say != nil | |
puts say + "\n" | |
end | |
end | |
puts "\n" | |
puts "I'm sorry it ended up this way, but we will both be better off." | |
end | |
puts "\nWe need to talk. Please sit down." | |
puts "Its about us, I'm not sure if this is working out. We need to break up." | |
puts "" | |
puts "How do you feel?" | |
response = gets.chomp | |
working_relationship(response) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment