Exemple #1
0
        public void FinishRound(RoundResult result)
        {
            switch (State)
            {
            case GameState.Preparation:
            case GameState.BetweenRounds:
                throw new NoRoundRunningException();

            case GameState.GameFinished:
                throw new GameOverException();
            }

            CurrentRound.Result = result;
        }
Exemple #2
0
        public void FinishRound(RoundResult result)
        {
            switch (State)
            {
                case GameState.Preparation:
                case GameState.BetweenRounds:
                    throw new NoRoundRunningException();
                case GameState.GameFinished:
                    throw new GameOverException();
            }

            CurrentRound.Result = result;
        }