Ejemplo n.º 1
0
        public Deck(UnoGame unoGame)
        {
            this.unoGame = unoGame;
            for (int i = 0; i < 10; i++)
            {
                // red cards
                cards.Add(new Card("red", i));
                cards.Add(new Card("red", i));

                //blue cards
                cards.Add(new Card("blue", i));
                cards.Add(new Card("blue", i));

                //green cards
                cards.Add(new Card("green", i));
                cards.Add(new Card("green", i));

                //yellow cards
                cards.Add(new Card("yellow", i));
                cards.Add(new Card("yellow", i));
            }

            Shuffle();
        }
Ejemplo n.º 2
0
 static void Main(string[] args)
 {
     UnoGame unoGame = new UnoGame();
 }
Ejemplo n.º 3
0
 public Player(string name, UnoGame unoGame)
 {
     this.unoGame = unoGame;
     this.name    = name;
     hand         = new List <Card>();
 }