public BettingBox(string Name) { _name = Name; Hand = new GameDeck(); Bidders = new List<User>(); DuplicateBidder = new bool[5] {false, false, false, false, false}; }
public Player(string Name) { _name = Name; Discard = new GameDeck(); Deck = new GameDeck(); Spoils = new GameDeck(); }
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(); }
private void SetCardColor(GameDeck Deck, int CardPosition) { if (Deck.DeckCount - 1 == CardPosition) { Console.ForegroundColor = ConsoleColor.White; } else { Console.ForegroundColor = ConsoleColor.Yellow; } }
private int ReturnCardValue(GameDeck deck, int position) { PlayingCard TheCard = (PlayingCard)deck.ReturnCard(position); return TheCard.Value; }
private string ReturnCardName(GameDeck deck, int position) { PlayingCard TheCard = (PlayingCard)deck.ReturnCard(position); return TheCard.ToString(); }
private void DisplayPauseWar(GameDeck Deck) { if (Deck.DeckCount > 1) if (!autoPlay) { Pause(); } }
public void MergeDecks(GameDeck AddedDeck) { Deck.AddRange(AddedDeck.Deck); AddedDeck.EmptyDeck(); }