Exemplo n.º 1
0
 public static bool RemoveAllHandsFromTable(Table table)
 {
     if (table.Hands != null)
     {
         foreach (Hand h in table.Hands)
         {
             DeckServices.ReturnCards(h, table.DeckOfCards);
         }
         DeckServices.ReturnCards(table.Community, table.DeckOfCards);
         table.Hands.Clear();
         DeckServices.Shuffle(table.DeckOfCards);
         return(true);
     }
     return(false);
 }