예제 #1
0
파일: Deck.cs 프로젝트: Team-Damson/Poker
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
파일: Deck.cs 프로젝트: Team-Damson/Poker
        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);
        }