Пример #1
0
        public TurnResult MakeTurn(Player player, decimal stakeMoney)
        {
            player.MakeStake(stakeMoney);

            var turn   = new Turn(stakeMoney, player);
            var result = turn.CalculateResult();

            if (result.HasGameEnded == false)
            {
                player.AddWinAmount(result.WinAmount);
            }

            return(result);
        }