Пример #1
0
        public Talon(GameRandom random)
        {
            List <Card> list = new List <Card>();

            foreach (Color color in Color.List)
            {
                for (int i = 1; i <= 9; i++)
                {
                    list.Add(new Card(i, color));
                }
            }
            this.deck   = new CardDeck(list, Constants.DECK_TALON);
            this.random = random;
            deck.Shuffle(random);
        }
Пример #2
0
 /// <summary>
 /// Initialize the talon.
 /// </summary>
 public void Init()
 {
     trash.MoveAll(deck);
     deck.Shuffle(this.random);
 }