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); }
public static void ClearCommunityCards(Table table) { DeckServices.ReturnCards(table.Community, table.DeckOfCards); table.Community.Cards.Clear(); }