예제 #1
0
        public void MoneyManagementTest_NoBankroll_Test()
        {
            moneyManagement = myMoneyManagement.getMoneyManagementBankroll(false);

            myMoneyManagement.Bankroll = 50;
            sessionTotalScore          = -45M;
            nextBet = 10;

            actualResult = moneyManagement(sessionTotalScore, nextBet);
            Assert.IsFalse(actualResult);
        }
예제 #2
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);
        }