From: houston barnett-gearhart Date: 2008-07-29T05:32:11+09:00 Subject: Re: deaf grandma. I don't know why this is so hard for me to get my head around, but thing's just aren't working out as I'd planned. Martin, I've followed your iterative approach, but I can't seem to implement each specificity into a conglomerate program. I have discovered #ruby-lang & I use it quite frequently, but it's much more difficult to explain the problems I'm having when I need to explain, in detail, what it is I'm doing, what I've tried, etc. In large part, that difficulty pushed me to posting here. Now, because you've said you're busy with work & unable to fiddle with any real-time stuff, I'll continue to post my questions here. As for the iterative approach & what I've written for each: 0. puts puts "Please say something." puts reply = gets.chomp puts puts "You said #{reply}." 1. loop {puts "Please say something." puts reply = gets.chomp puts} 2. puts puts "The world is flat. True or false?" puts reply = gets.chomp.downcase if reply == "true" puts puts "You must've read Thomas L. Friedman's book!" elsif reply == "false" puts puts "Ah, submitting to Pythagoras' proposal that" puts "the world is round, I see. That's so 2,508" puts "years ago!" end 3. (I cannot take ownership for writing this. sepp2k from #ruby-lang helped me considerably. He alerted me to the fact I shouldn't be using go-to style flow control & told me looping was the better bet.) reply = "abc" while reply != reply.upcase puts puts "Simon says, 'Input your text in all" puts "caps! Otherwise, I won't echo back" puts "anything you say! Instead, I will" puts "spit out my 'Simon says' spiel once" puts "more. & you wouldn't want that!" puts reply = gets.chomp end puts reply ... for now, that's all I've got. I've been working on each individual step of the iterative approach & trying to pick up what I can through my questions on #ruby-lang. I'll post the code for 4 & 5 later on in the day. Please take a look over what I've written (with the help of an array of people) & let me know if there's anywhere I can clean it up. Thanks! -- Posted via http://www.ruby-forum.com/.