Beispiel #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();
        }
Beispiel #2
0
 static void Main(string[] args)
 {
     UnoGame unoGame = new UnoGame();
 }
Beispiel #3
0
 public Player(string name, UnoGame unoGame)
 {
     this.unoGame = unoGame;
     this.name    = name;
     hand         = new List <Card>();
 }