From: Jeppe Jakobsen Date: 2006-03-30T06:59:21+09:00 Subject: Re: Learn to Program, by Chris Pine ------=_Part_10640_16917383.1143669558320 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline You could use until or if (or both). You could make a variable the would count how many times in a row you said "BYE" to grandma, starting at 0 of cause, and make it add 1 each times and reset it to 0 if you did not say "BYE". Here is an example: counter =3D 0 Until (counter =3D=3D 3) tell_grandma =3D gets.chomp if (tell_grandma =3D=3D "BYE") counter +=3D 1 end end Just find a way to integrate with your current grandma program :) 2006/3/29, Jan_K : > > Does anyone know where I can find the solutions to the exercises in > this book: > > http://pine.fm/LearnToProgram/ > > > I'm stuck in "Flow Control" chapter, specificailly the "Extend Deaf > Grandma" exercise. > > I feel like beating the shit out of some punching bag somewhere. Is > this a normal reaction when one is trying to learn to program for the > first time? > > -- > Jan > > -- "winners never quit, quitters never win" ------=_Part_10640_16917383.1143669558320--