Ejemplo n.º 1
0
        public void reset()
        {
            String suitph;

            for (int x = 0; x < 4; x++)
            {
                switch (x)
                {
                case 0:
                    suitph = "Spades";
                    break;

                case 1:
                    suitph = "Clubs";
                    break;

                case 2:
                    suitph = "Hearts";
                    break;

                case 3:
                    suitph = "Diamonds";
                    break;

                default:
                    suitph = "null";
                    break;
                }
                for (int y = 1; y < 14; y++)
                {
                    Card card = new Card();
                    card.setSuit(suitph);
                    card.setValue(y);
                    cards.Add(card);
                }
            }
        }