submit HW 2 - secret number

==>No, It should not a numerical index.
In the each-do loop, |index| is serve as an iterator , it returns the value
of a container of an array, then it run the code one by one until the range
from start to end had completed.  I will revise my code and commit it later

On Sun, Nov 9, 2014 at 12:04 PM, Hubert Lee <notifications@github.com>
wrote:

> In wilsonlam/Teddit.rb:
>
> > +    puts "Would you like to add another story? Enter 'y' or 'n'"
> > +    print prompt
> > +
> > +    loop do
> > +      add_more = get_input.capitalize.chomp
> > +      if add_more == "Y" or add_more == "N"
> > +          break    # break out the loop do condition with correct user input
> > +      else
> > +          puts "Please enter 'y' or 'n'"    # loop while getting the correct user input
> > +          print prompt                      # print the prompt so that the user knows to re-enter input
> > +      end
> > +    end
> > +end
> > +
> > +puts "Here are the summary of stories you added :"
> > +stories_array.each do |index|
>
> What kind of data is inside index? Is it really a numerical index?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ga-students/BEWD_2_HK/pull/12/files#r20056474>.
>