Пример #1
0
 public void GiveCards(IReadOnlyCollection <IBetCard> betsCards)
 {
     if (_players.Count().Equals(2))
     {
         _players.Each((player, index) => player.GiveCard(betsCards.ToList()[index]), 2);
     }
     else
     {
         _players.Each((player, index) => player.GiveCard(betsCards.ToList()[index]), 1);
     }
 }