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 Name : "); player1.Name = System.Console.ReadLine(); System.Console.Write("Player2 Name : "); 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]); } }
public Player() { Name = "Unknown"; PlayedDeck = new Deck(); CountWin = new Deck(); }