public Player()
 {
     Name = "Unknown";
     PlayedDeck = new Deck();
     Count = new Deck();
 }
Beispiel #2
0
 public static void Setting(Player player1,Player player2)
 {
     maindeck = new Deck(13,4);
     System.Console.WriteLine("Welcome to High-Low Card Game!!!");
     maindeck.Shuffle();
     System.Console.Write("Player1 : ");
     player1.Name = System.Console.ReadLine();
     System.Console.Write("Player2 : ");
     player2.Name = System.Console.ReadLine();
     System.Console.WriteLine("---------------------");
     for (int i = 0; i < 52; i += 2)
     {
         player1.PlayedDeck.Cards.Add(maindeck.Cards[i]);
         player2.PlayedDeck.Cards.Add(maindeck.Cards[i + 1]);
     }
 }