HW_1

The writing of the code went well. I am just not sure how much commenting is necessary. I walked through most of my code with comments. Is this excessive?
[image: Inline image 1]

It should work. According to the Ruby Style Guide it is better form to use
a single line if statement. It seemed to work when I ran it.

https://github.com/bbatsov/ruby-style-guide


On Tue, Jun 10, 2014 at 11:26 AM, GA-Boston <notifications@github.com>
wrote:

> In guess.rb:
>
> > +          puts "That is incorrect. The number is higher."
> > +        else
> > +          puts "That is incorrect. The number is lower."
> > +        end
> > +      else
> > +        puts "Sorry you are out of guesses. The random number is #{random}."
> > +      end
> > +    end
> > +  end
> > +
> > +  # prompt the user to ask if they want to play again
> > +  puts "Would you like to play again? (yes or no)"
> > +  play_again = gets.chomp.downcase
> > +
> > +  # starts a new game if yes; else ends program
> > +  game if play_again == "yes"
>
> I understand what you were trying to do, but the syntax you've used here
> won't work. Try this instead:
> if play_again == 'yes'
> game
> end
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ga-wdi-boston/wdi_1_ruby_hw_number_guess/pull/11/files#r13600027>
> .
>