submit HW 2 - secret number

ok, notted

On Sun, Nov 9, 2014 at 11:47 AM, Hubert Lee <notifications@github.com>
wrote:

> In wilsonlam/secret_number_game.rb:
>
> > +#  - Verify if they were correct. If the player guesses correctly they win the game they should be congratulated and the game should end.
> > +#  - If they guess incorrectly, give the player some direction. If they guess too high let them know, if they guess too low, let them know.
> > +#  - Don't forget to let your players know how many guesses they have left. Your game should say something like
> > +#    "You have X many guesses before the game is over enter a another number"
> > +#  - If they don't guess correctly after 3 tries, print that the Player lost and the game is over. Also let them know what the `secret_number` was.
> > +#
> > +# Make sure to add helpful comments to your code to document what each section does.
> > +#
> > +# Remember to cast input from the Player into the appropriate data type.
> > +#
> > +###############################################################################
> > +
> > +
> > +
> > +index = 0
> > +remaining = 0
>
> Note that unlike other programming languages, Ruby does not require you to
> initialize variables in advance. This declaration of index and remaining
> is unnecessary. Do you know why? Consider how you are using index and
> remaining in your code below.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ga-students/BEWD_2_HK/pull/12/files#r20056414>.
>