public Player() { _hand = new PlayingDeck(); _deck = new PlayingDeck(); _discard = new PlayingDeck(); _field = new PlayingDeck(); }
public static void DealCards(PlayingDeck Deck, Player PlayerOne, Player PlayerTwo) { int CardCount = 0; while (CardCount != Deck.DeckCount) { PlayerOne.PlayersDeck.AddCardToBottom(Deck.PickACard(CardCount)); CardCount++; PlayerTwo.PlayersDeck.AddCardToBottom(Deck.PickACard(CardCount)); CardCount++; } }
private static void DealCards(PlayingDeck Deck, Player PlayerOne, Player PlayerTwo) { int CardCount = 0; while (CardCount != Deck.DeckCount) { PlayerOne.Deck.Add(Deck.PickACard(CardCount)); CardCount++; PlayerTwo.Deck.Add(Deck.PickACard(CardCount)); CardCount++; } }
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 GameSetup() { autoPlay = !AskYesOrNoQuestion("Would you like to pause between plays?"); _round = 0; GameofWarDeck = new PlayingDeck(); GameofWarDeck.NewSeed(); GameofWarDeck.ShuffleDeck(); DealCards(GameofWarDeck, Player1, Player2); }