From: "Steve K." Date: 2011-05-04T11:22:36+09:00 Subject: Re: Deaf Grandma I was doing stupid things with arrays and all sorts of dumb crap until I came here and read this thread. Super good work. I wanted my Ruby script to work with the three goodbyes extension exercise mentioned above. Also—I like double quotes and #{} to get things done. In my neophyte opinion, it's cleaner and less characters. puts "TALK TO ME! SO LONELY!\n\n" bye = 0 while bye < 3 response = gets.chomp if response == "BYE" puts "STAY AWHILE!?!" bye = (bye+1) elsif response == response.upcase puts "NO! NOT SINCE #{1910+rand(41)}!" bye = 0 else puts "Huh?! I CAN'T HEAR YOU!" bye = 0 end end If you make it a single string—it's 263 if you format it to one line and strip my OCD new-line characters. It resets "bye" back down to zero if it's not said three times straight. -- Posted via http://www.ruby-forum.com/.