示例#1
0
 public Game(List <Player> players, Deck deck, DiscardPile discardPile)
 {
     Players = players;
     Deck    = deck;
     deck.ShuffleDeck();
     DealCards(deck);
     Direction   = TurnDirection.Clockwise;
     Turn        = 0;
     Round       = 1;
     DiscardPile = discardPile;
 }
示例#2
0
 public void ResetGame()
 {
     Deck = new Deck();
     Deck.ShuffleDeck();
     DealCards(Deck);
     Direction   = TurnDirection.Clockwise;
     Turn        = 0;
     DiscardPile = new DiscardPile();
     WinnerScore = 0;
     RoundOver   = false;
     Round++;
 }