public void Initialize(IEnumerable <IEnumerable <Common.Card> > cards, int dealerPosition) { _statusFragment.DisplayWaitingStatus(cards.Count()); _cardFragment.SetCards(cards, dabbCards: new List <Common.Card>()); _cardFragment.UncoverCards(cards.First()); _indicatorFragment.SetDealerPosition(dealerPosition); }
public void SetCards(IEnumerable <IEnumerable <Common.Card> > cardsPerPlayer, IEnumerable <Common.Card> dabbCards) { lock (_mutex) { _cardFragment.SetCards(cardsPerPlayer, dabbCards); _statusFragment.DisplayWaitingStatus(cardsPerPlayer.Count()); _cardsPerPlayer = new List <IList <Common.Card> >(); foreach (var playerCards in cardsPerPlayer) { _cardsPerPlayer.Add(playerCards.ToList()); } _dabbCards = dabbCards.ToList(); } }