Hi, thanks for your comments, I wanted to prompt the user if he entered the same number more than once. I just initialized Guess_previous to have a value of 99999 but be updated after the user starts guessing. I am fine with merging as I have not enough time to make changes today.

Sincerely
Shiqing

Sent from my iPhone

> On 1 Apr, 2014, at 2:12 pm, Brooks Swinnerton <notifications@github.com> wrote:
> 
> In _Shi_Qing_Poh/HW_01_Shiqing_290314.rb:
> 
> > +  else
> > +  	puts "Okay! Good Luck with the game!"
> > +  end
> > +  return name_chomped
> > +end
> > +
> > +# Function for providing instructions with the number range and number of guesses.
> > +def instructions(max,tries)
> > +  puts "Here are the instructions. \nI have a secret number from 1 to #{max} and you have #{tries} chances to guess that number. \nYou win if you guess correctly in #{tries} tries and I win if you don't!"
> > +end
> > +
> > +# Function for playing the game. This function calls other functions based on the player input - correct input, wrong input, bad input.
> > +def game(name,max,tries)
> > +  secret_number = rand(1..max)
> > +  puts "Make your first guess. Type in a number when you are ready and click enter."
> > +  guess_previous = 999999
> Just out of curiosity, how come you're doing this?
> 
> —
> Reply to this email directly or view it on GitHub.