Пример #1
0
 public Control()
 {
     nDeck = new Deck();
     //nDeck.PrintDeck();
     Setup();
     PlayLoop();
 }
 public Player(int numplayer)
 {
     playerdeck = new Deck();
     player = numplayer;
     count = 0;
     name = "Unknown";
 }
Пример #3
0
 public Player(int pOrder = 0, string pName = "Anonymous")
 {
     PlayingDeck = new Deck();
     Count = 0;
     Name = pName;
     Order = pOrder;
 }
 public Player()
 {
     Name = "Untitle";
     Score = 0;
     Mycard = new Deck();
     Mycard.deck.Clear();
 }
Пример #5
0
        public Player(string name, int i, Deck D)
        {
            _name = name;
            _pile = new List<Card>(26);

            for(int j=0; j<26; j++, i++)
            {
                _pile.Add(D.ADeck[i]);
            }
            //PrintPile();
        }
 public Player()
 {
     Name = "NONE";
     PlayDeck = new Deck();
     WinDeck = new Deck();
 }
 public static void DeckCards()
 {
     base_deck = new Deck(13, 4);
     base_deck.shuffle();
 }
 public void StartGame()
 {
     Console.WriteLine(" (:3[___] STARTING GAME _(:3JL)_ =3");
     Console.Write(" =w= Please Enter Player 1 Name : ");
     Player[0].Name = Console.ReadLine();
     do
     {
         Console.Write(" =w= Please Enter Player 2 Name : ");
         Player[1].Name = Console.ReadLine();
     } while (Player[0].Name == Player[1].Name);
     AllCard = new Deck();
     AllCard.Shuffle();
     Deal();
 }
Пример #9
0
 public static void SettingUp()
 {
     //Console.WriteLine("~ Setting up the High-Low Card Game ~");
     base_deck = new Deck(13, 4);
     base_deck.Shuffle();
     //base_deck.ViewCardsinDeck();
     //Console.WriteLine("Base card deck is READY!");
 }
Пример #10
0
 //public static int LastCard { get; private set; }
 public static void Setting()
 {
     baseDeck = new Deck(13, 4);
     baseDeck.Shuffle();
 }
Пример #11
0
 public Game()
 {
     Player1 = new Player();
     Player2 = new Player();
     Dec = new Deck();
 }
Пример #12
0
 public Gameplay()
 {
     pDeck = new Deck();
     creatPlayer();
     PlayLoop();
 }
Пример #13
0
 public Player()
 {
     PlayingDeck = new Deck();
     Count = 0;
     Point = 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 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.PlayDeck.CardDeck.Add(maindeck.CardDeck[i]);
         player2.PlayDeck.CardDeck.Add(maindeck.CardDeck[i + 1]);
     }
 }