Пример #1
0
 public void add_card(Card x)
 {
     cards_in_hand.Add(deal_Card_To_Person());
 }
        public void create_Deck(int x)
        {
            //int[] scores = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
            char[] ranks = { 'a', '2', '3', '4', '5', '6', '7', '8', '9', '1', 'j', 'q', 'k' };
            string[] suits = { "heart", "diamond", "club", "spade" };

            for (int j = 0; j < x; j++)
            {
                for (int i = 0; i < 4; i++)
                {

                    for (int y = 0; y < 13; y++)
                    {
                        Card card_To_Add = new Card(ranks[y], suits[i]);
                        deck.Add(card_To_Add);
                    }
                }
            }
        }