Example #1
0
        public void Play()
        {
            int?winner = _resultsService.GetGameWinner(rounds.Select(e => e.Play()).ToArray());

            if (winner != null)
            {
                _messageService.WriteGameWinner(players[winner.Value].Name);
            }
            else
            {
                _messageService.WriteGameWinner();
            }
        }