Пример #1
0
        public void PrepareGame(bool includeTies = true)
        {
            score = new ScoreBaccarat();
            shoe  = new Shoe(cards);
            game  = new GameBaccarat()
            {
                Shoe = shoe
            };
            game.IncludeTies = includeTies;
            game.Play();

            myBetProgression = new BetProgressions[Constants.StrategizeTotalNumber]
            {
                new BetProgressions(),
                new BetProgressions(),
                new BetProgressions(),
                new BetProgressions()
            };

            myStrategy = new StrategyBaccarat[Constants.StrategizeTotalNumber]
            {
                new StrategyBaccarat(),
                new StrategyBaccarat(),
                new StrategyBaccarat(),
                new StrategyBaccarat()
            };

            for (int setNumber = 0; setNumber < Constants.StrategizeTotalNumber; setNumber++)
            {
                myBetProgression[setNumber].BetProgressionType = BetProgressionTypes.FlatBet;
                myStrategy[setNumber].StrategyBaccaratType     = StrategiesBaccaratTypes.None;
            }

            strategyMultiWrapper = new StrategyMultiWrapper();

            for (int setNumber = 0; setNumber < Constants.StrategizeTotalNumber; setNumber++)
            {
                strategyMultiWrapper.MyBetProgression[setNumber] = myBetProgression[setNumber];
                strategyMultiWrapper.MyStrategy[setNumber]       = myStrategy[setNumber];
            }

            myMoneyManagement = new MoneyManagements();
            mmShoe            = myMoneyManagement.getMoneyManagementShoe(false, false);
            mmBankroll        = myMoneyManagement.getMoneyManagementBankroll(false);
        }
Пример #2
0
        public Session()
        {
            myStrategy = new StrategyBaccarat[Constants.StrategizeTotalNumber]
            {
                new StrategyBaccarat(),
                new StrategyBaccarat(),
                new StrategyBaccarat(),
                new StrategyBaccarat(),
            };

            strategyMultiWrapper = new StrategyMultiWrapper();

            myBetProgression = new BetProgressions.BetProgressions[Constants.StrategizeTotalNumber]
            {
                new BetProgressions.BetProgressions(),
                new BetProgressions.BetProgressions(),
                new BetProgressions.BetProgressions(),
                new BetProgressions.BetProgressions()
            };

            myMoneyManagement = new MoneyManagements.MoneyManagements();

            shoeResults = new List <List <ResultBaccaratCoup> >();
            shoeScores  = new List <ScoreBaccarat>();
            ItemsShoe   = new List <ItemResultBaccaratShoeViewModel>();

            shoe   = new Shoe(App.GameBaccaratViewModel.NDecksInt);
            dealer = new Dealer()
            {
                Shoe = shoe
            };

            gameBaccarat = new GameBaccarat()
            {
                Shoe = dealer.Shoe
            };

            for (int setNumber = 0; setNumber < Constants.StrategizeTotalNumber; setNumber++)
            {
                strategyMultiWrapper.MyBetProgression[setNumber] = myBetProgression[setNumber];
                strategyMultiWrapper.MyStrategy[setNumber]       = myStrategy[setNumber];
            }

            strategy = strategyMultiWrapper.GetStrategyMultiWrapper();
        }