private async Task SetCardToPlayers(ICardHolder cardHandler, int cardHandlerIndex, int cardsCountToSet) { IList<ICard> cards = new List<ICard>(); for (int i = 0; i < cardsCountToSet; i++) { cards.Add(this.Cards[cardHandlerIndex * cardsCountToSet + i]); } await cardHandler.SetCards(cards); }
private async Task SetCardToDealer(ICardHolder cardHandler, int cardsCountToSet, int allPlayersCardsCount) { IList <ICard> cards = new List <ICard>(); for (int i = 0; i < cardsCountToSet; i++) { cards.Add(this.Cards[allPlayersCardsCount + i]); } await cardHandler.SetCards(cards); }
private async Task SetCardToPlayers(ICardHolder cardHandler, int cardHandlerIndex, int cardsCountToSet) { IList <ICard> cards = new List <ICard>(); for (int i = 0; i < cardsCountToSet; i++) { cards.Add(this.Cards[cardHandlerIndex * cardsCountToSet + i]); } await cardHandler.SetCards(cards); }
private async Task SetCardToDealer(ICardHolder cardHandler, int cardsCountToSet, int allPlayersCardsCount) { IList<ICard> cards = new List<ICard>(); for (int i = 0; i < cardsCountToSet; i++) { cards.Add(this.Cards[allPlayersCardsCount + i]); } await cardHandler.SetCards(cards); }