Esempio n. 1
0
        private void PopulateDecks()
        {
            Decks = new Dictionary <CardColor, IDeck>();
            foreach (var card in _cardLoader.GetAvailableCards())
            {
                if (!Decks.ContainsKey(card.Color))
                {
                    Decks.Add(card.Color, new Deck(card.Color));
                }

                Decks[card.Color].AddCard(card);
            }
        }