예제 #1
0
파일: Game.cs 프로젝트: allownulls/rps-game
        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();
            }
        }