Ejemplo n.º 1
0
        public IEnumerable <IDomainEvent> Answer(string playerId, string answer)
        {
            CheckPlayable();
            CheckPlayerTurn(playerId);
            yield return(CurrentPlayer.Answer(answer));

            yield return(NextPlayerTurn());
        }
Ejemplo n.º 2
0
        internal bool Answer(int playerId, string answer)
        {
            CheckPlayable();
            CheckPlayerTurn(playerId);
            var goodAnswer = CurrentPlayer.Answer(answer);

            NextPlayerTurn();
            return(goodAnswer);
        }