コード例 #1
0
        private void CalculateEquity(List <EquityPlayer> players, Street street, BoardCards boardCards, HandHistories.Objects.Cards.Card[] dead, GeneralGameTypeEnum gameType, int potIndex)
        {
            var equitySolverParams = new EquitySolverParams
            {
                PlayersCards = players.Select(x => x.HoleCards).ToArray(),
                BoardCards   = boardCards.ToArray(),
                Dead         = dead,
                GameType     = gameType
            };

            var equity = CalculateEquity(equitySolverParams);

            for (var i = 0; i < players.Count; i++)
            {
                players[i].Equity[potIndex] = (decimal)equity[i].Equity;
            }
        }