示例#1
0
        public int PlayGame()
        {
            _dealer.Shuffle();
            for (var i = 0; i < PlayersCount; i++)
            {
                _hands[i] = _dealer.Deal(_handSize).ToList();
                _players[i].Deal(_hands[i].AsReadOnly());
            }

            for (var i = 0; i < _handSize; i++)
            {
                var foldResult = PlayFold(i);

                _scores[foldResult.Winner]++;
            }

            return(_scores.IndexOf(_scores.Max()));
        }