Beispiel #1
0
        private void SendCards(int seed)
        {
            var cards = GeneratePlayCards(seed);

            foreach (var player in Players)
            {
                var pCards = cards.Take(17 * 1);
                player.Cards = pCards.ToListAndSort();
                cards        = cards.Skip(17 * 1);
            }

            var landlordDiscuss = new LandlordDiscuss(cards, this);

            _currentParser = landlordDiscuss;
            landlordDiscuss.Prepare(this);
        }
Beispiel #2
0
        public void SendCards()
        {
            var cards = GeneratePlayCards();

            foreach (var player in Players)
            {
                var pCards = cards.Take(17 * 1);
                if (player.Cards == null)
                {
                    player.Cards = pCards.ToListAndSort();
                }
                else
                {
                    player.Cards.AddRange(pCards);
                }
                cards = cards.Skip(17 * 1);
            }

            var landlordDiscuss = new LandlordDiscuss(cards, this);

            _currentParser = landlordDiscuss;
            landlordDiscuss.Prepare(this);
        }