Ejemplo n.º 1
0
        private void TurnEnd()
        {
            //perform end of turn action, whilst checking for GameOver
            var cureCard = _cureDeckManager.DrawCard();

            //if you can't draw a cure card, it is gameover
            if (cureCard == null)
            {
                GameOver();
            }
            _interactionManager.OutputContent(String.Format("Cure Card Drawn: {0}", cureCard.ToString()));
            _playerManager.EndPlayerTurn();
            DrawInfectionCards();
            if (_boardState.totalCubes(DiseaseColour.Blue) > 10)
            {
                GameOver();
            }
            else
            {
                //game not over, ask for new action
                RequestAction();
            }
        }