Re: Beginner Needs Help

super
irb(main):024:0> hands = Array.new(4) {|idx| Array.new(4)}
=> [[nil, nil, nil, nil], [nil, nil, nil, nil], [nil, nil, nil, nil],
[nil, nil, nil, nil]]

Regards,

Bill

Ah, thanks Bill and others who might respond. All I have to do is set
the
initial values of hands to 0, not nil.

beep beep

Charlie

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs