Homework completed.

i will make a random() method in SecretNumber class then.

On Tue, Nov 11, 2014 at 11:29 PM, Hubert Lee <notifications@github.com>
wrote:

> In Chris_Cheuk/Week 3 homework/number guest/lib/game.rb:
>
> > @@ -0,0 +1,40 @@
> > +require_relative 'person'
> > +require_relative 'secret_number'
> > +
> > +class Game
> > +	attr_accessor :player, :num, :guess
> > +
> > +	def initialize(name)
> > +	  @player=Person.new(name)
> > +	end
> > +	def generate_num
> > +		array=SecretNumber.new
> > +		@num=array.value[rand(4)]
>
> Instead of generating the number and then assigning it to the SecretNumber
> class, the SecretNumber class itself should generate the number.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ga-students/BEWD_2_HK/pull/18/files#r20156713>.
>