示例#1
0
 public static FiveSuitedCard[] GetStandardDeckWithJokers()
 {
     FiveSuitedCard[] deckOfCards = new FiveSuitedCard[54];
     deckOfCards.CopyTo(StandardPlayingCard.GetColorlessJoker(), 0);
     deckOfCards.CopyTo(GetStandardDeck(), 1);
     deckOfCards.CopyTo(GetStandardDeck(), 53);
     return(deckOfCards);
 }
示例#2
0
        public static FiveSuitedCard[] GetAStandardJoker( )
        {
            FiveSuitedCard[] deckOfCards = new FiveSuitedCard[1] {
                new StandardPlayingCard(StandardSuitEnum.NotASuit, 16)
            };

            return(deckOfCards);
        }
示例#3
0
 public static FiveSuitedCard[] GetStandardDeck()
 {
     FiveSuitedCard[] deckOfCards = new FiveSuitedCard[52];
     deckOfCards.CopyTo(GetAStandardSuitOfCards(StandardSuitEnum.Clubs), 0);
     deckOfCards.CopyTo(GetAStandardSuitOfCards(StandardSuitEnum.Diamonds), 13);
     deckOfCards.CopyTo(GetAStandardSuitOfCards(StandardSuitEnum.Hearts), 26);
     deckOfCards.CopyTo(GetAStandardSuitOfCards(StandardSuitEnum.Spades), 39);
     return(deckOfCards);
 }
示例#4
0
 public static FiveSuitedCard[] GetAStandardSuitOfCards(StandardSuitEnum suit)
 {
     FiveSuitedCard[] deckOfCards = new FiveSuitedCard[13];
     for (int i = 1; i <= deckOfCards.Length; i++)
     {
         deckOfCards[i] = new StandardPlayingCard(suit, i);
     }
     return(deckOfCards);
 }