public Deck()
        {
            deck = new Card[52];

            for (int i = 0; i < deck.Length; i++)
            {
                deck[i] = new Card(new Suit(i / 13 + 1), new Pips(i % 13 + 2));
            }
        }
示例#2
0
文件: Deck.cs 项目: B3J4y/Poker
        public Deck()
        {
            cards = new Card[52];
            int k = 0;

            for (int i = 2; i < 15; i++)
            {
                for (int j = 0; j < 4; j++)
                {
                    cards[k] = new Card(j, i);
                    k++;
                }
            }
            Shuffle();
        }
 public void setCard(int i, Card c)
 {
     cards[i] = c;
 }
 public Card(Card c)
 {
     this.suit = c.suit; this.pip = c.pip; this.discarded = false;
 }
示例#5
0
文件: Player.cs 项目: B3J4y/Poker
 public void setOneCard(Card card)
 {
     log.Debug("setOneCard(Card " + card.ToString() + ") - Begin");
     cards.Add(card);
     log.Debug("setOneCard() - End");
 }