Beispiel #1
0
        public void Start()
        {
            var askBeforeNewRound = new AskBeforeNewRound(_game.DeckService);

            while (!_isTheGameStarting)
            {
                _isTheGameStarting = askBeforeNewRound.GetCommandAndHandleIt();
            }

            while (!_isTheGameClosed)
            {
                var round = new Round(_game.DeckService, _game.Human, _game.Computer);
                round.CounterRound = _game.RoundsList.Count;
                round.RoundService.PlayRound();
                _game.DeckService.PutCardsBack(_game.Human.PlayerService.GiveCards());
                _game.DeckService.PutCardsBack(_game.Computer.PlayerService.GiveCards());
                _game.RoundsList.Add(round);
            }
        }
 public TestConditions(Round round)
 {
     _round = round;
 }