ArmedCards.BusinessLogic.DomainServices.GamePlayerCard.CalculateDrawCount.Execute C# (CSharp) Метод

Execute() публичный Метод

Calculate the number of cards each player needs to draw in order to have a full hand
public Execute ( Entities question, List players ) : Int32>.Dictionary
question Entities The question card for the round
players List List of players in the game
Результат Int32>.Dictionary
        public Dictionary<Int32, Int32> Execute(Entities.Card question, List<Entities.GamePlayer> players)
        {
            Dictionary<Int32, Int32> drawCount = new Dictionary<Int32, Int32>();

            foreach (Entities.GamePlayer player in players)
            {
                drawCount.Add(player.User.UserId, Execute(question, player.CardCount));
            }

            return drawCount;
        }

Same methods

CalculateDrawCount::Execute ( Entities question, Int32 playerCardCount ) : Int32
CalculateDrawCount