private static void PlayRounds(IPlayCoordinator playCoordinator, uint roundsToComplete)
 {
     for (var i = 0; i < roundsToComplete; i++)
     {
         playCoordinator.PlayRound();
     }
 }
 public void Subscribe(IPlayCoordinator playCoordinator)
 {
     playCoordinator.RoundCompleted += OnRoundComplete;
 }
Ejemplo n.º 3
0
 public void RunGame(IEnumerable <string> playerNames)
 {
     _playCoordinator = ConstructPlayCoordinator(playerNames);
     _playCoordinator.Play();
 }
        private void PlayMultipleRounds(IPlayCoordinator playCoordinator)
        {
            var roundsToComplete = Fixture.Create <uint>();

            PlayRounds(playCoordinator, roundsToComplete);
        }