black_jack/lib/blackjack.rb
#deal cards to @players one at a time
deal cards to @players one at a time
deal cards to @players one at a time
def deal
  count = 0
  @deck.shuffle
  while count < (@players.length)*2
    @players.each do |player_name,hand|
      card = @deck.deal
      hand.hand << card
      card_dealt(player_name, card.suit + "" + card.value)
      player_score(player_name)
      count +=1
    end
  end
end
def deal count = 0 @deck . shuffle while count < ( @players . length ) * 2 @players . each do | player_name , hand | card = @deck . deal hand . hand << card card_dealt ( player_name , card . suit + "" + card . value ) player_score ( player_name ) count += 1 end end end
deal cards to @players one at a time
deal cards to @players one at a time