示例#1
0
 public BettingBox(string Name)
 {
     _name = Name;
     Hand = new GameDeck();
     Bidders = new List<User>();
     DuplicateBidder = new bool[5] {false, false, false, false, false};
 }
示例#2
0
 public Player(string Name)
 {
     _name = Name;
     Discard = new GameDeck();
     Deck = new GameDeck();
     Spoils = new GameDeck();
 }
示例#3
0
        public Dealer(int Decks)
        {
            Discard = new GameDeck();
            Deck = new PlayingDeck();
            Hand = new GameDeck();

            for (int IncrementDeck = 1; IncrementDeck < Decks; IncrementDeck++)
            {
                PlayingDeck addDeck = new PlayingDeck();
                Deck.MergeDecks(addDeck);
            }

            Deck.ShuffleDeck();
        }
示例#4
0
 private void SetCardColor(GameDeck Deck, int CardPosition)
 {
     if (Deck.DeckCount - 1 == CardPosition)
     {
         Console.ForegroundColor = ConsoleColor.White;
     }
     else
     {
         Console.ForegroundColor = ConsoleColor.Yellow;
     }
 }
示例#5
0
 private int ReturnCardValue(GameDeck deck, int position)
 {
     PlayingCard TheCard = (PlayingCard)deck.ReturnCard(position);
     return TheCard.Value;
 }
示例#6
0
 private string ReturnCardName(GameDeck deck, int position)
 {
     PlayingCard TheCard = (PlayingCard)deck.ReturnCard(position);
     return TheCard.ToString();
 }
示例#7
0
 private void DisplayPauseWar(GameDeck Deck)
 {
     if (Deck.DeckCount > 1)
     if (!autoPlay)
     {
         Pause();
     }
 }
示例#8
0
 public void MergeDecks(GameDeck AddedDeck)
 {
     Deck.AddRange(AddedDeck.Deck);
        AddedDeck.EmptyDeck();
 }