Exemplo n.º 1
0
 public static bool PutHandsOnTable(Table table, int numberOfHands)
 {
     if ((table.Hands.Count + numberOfHands) <= table.MaxHands)
     {
         for (int i = 0; i < numberOfHands; i++)
         {
             Hand h = DeckServices.DrawHoldemHand(table.DeckOfCards);
             h.IndexOnTable = i;
             h.Table        = table;
             table.Hands.Add(h);
         }
         return(true);
     }
     return(false);
 }