Exemple #1
0
        //
        // Instance helper methods
        //

        // makeDeck52 /////////////////////////////////////
        private void makeDeck52()
        {
            foreach (Card.SuitType suit in Enum.GetValues(typeof(Card.SuitType)))
            {
                if (!Card.IsJokerSuit(suit))
                {
                    foreach (Card.SpotType spot in Enum.GetValues(typeof(Card.SpotType)))
                    {
                        if (!Card.IsJokerSpot(spot))
                        {
                            new Card(suit, spot, this);
                        }
                    }
                }
            }
        }