Exemple #1
0
        public void Roll(int roll)
        {
            _textDisplay.DisplayCurrentPlayer(_currentPlayer);

            _textDisplay.DisplayDiceRoll(roll);

            if (_currentPlayer.IsInPenaltyBox)
            {
                _currentPlayer.IsGettingOutOfPenaltyBox = IsGettingOutOfPenaltyBox(roll);
                if (!_currentPlayer.IsGettingOutOfPenaltyBox)
                {
                    _textDisplay.DisplayDontGetOutPenaltyBox(_currentPlayer);
                    return;
                }
                _textDisplay.DisplayGetOutPenaltyBox(_currentPlayer);
            }

            _currentPlayer.GoToNewLocation(roll);

            _textDisplay.DisplayCategory(CurrentCategory);
            _textDisplay.DisplayQuestion(AskQuestion());
        }