Ejemplo n.º 1
0
        //player actions

        public void PlayerTellStory(Player player, string story, Card card)
        {
            if (GameState != State.Story)
            {
                throw new InvalidOperationException($"Invalid game state {GameState.DisplayName} for TellStory command");
            }
            CurrentRound.PlayerTellStory(player, story, card);
            card.Played(RoundNumber);
            GameState = State.InProgress;
        }