Пример #1
0
        private static AssumptionResult CheckAssumption(Assumption assumption, Game currentGame, DrawCardResponse drawCardResponse)
        {
            var card = drawCardResponse.cards.First();

            var result = new AssumptionResult
            {
                Success   = assumption.IsCorrect(card),
                GameState = currentGame
            };

            if (result.Success)
            {
                result.GameState.score += assumption.Worth;
            }

            return(result);
        }