Ejemplo n.º 1
0
 public void reset() // resets game prior to a new round
     {
   myDeck = new ScumDeck();
   myDeck.clear();
   for (Player p : players) // resets all the players
   p.reset();
   for (int x = 0; x < numberOfDecks; x++) {
     ScumDeck temp = new ScumDeck();
     for (ScumCard c : temp.getDeck()) myDeck.add(c); // creates a new deck
   }
   myDeck.shuffle(); // shuffles the deck
   deal(); // deals out the deck evenly as possible
   clearDiscard(); // clears the discard pile
   lastMove.clear();
   done = false; // the game has started
 }