Ejemplo n.º 1
0
        public DCard Draw()
        {
            DCard draw = Cards[0];

            Cards.RemoveAt(0);
            return(draw);
        }
Ejemplo n.º 2
0
        public void Shuffle()
        {
            Random rng   = new Random();
            int    count = Cards.Count;

            while (count > 1)
            {
                count--;
                int   rand = rng.Next(count + 1);
                DCard card = Cards[rand];
                Cards[rand]  = Cards[count];
                Cards[count] = card;
            }
        }