Beispiel #1
0
        /// <summary>
        /// 统一下注数量
        /// </summary>
        /// <param name="RestCash"></param>
        /// <param name="cc"></param>
        /// <returns></returns>
        public override Int64 getChipAmount(double RestCash, PK10CorePress.ChanceClass cc, AmoutSerials ams)
        {
            ////if (this.UseAmountList.ContainsKey(this.LastUseData.LastData.Expect))
            ////{
            ////    //return this.UseAmountList[this.LastUseData.LastData.Expect];
            ////}
            if (cc.IncrementType == InterestType.SimpleInterest)
            {
                return((int)Math.Floor(this.CommSetting.InitCash * 0.01));
            }
            double p        = (double)(cc.ChipCount / this.CommSetting.Odds);
            double Normal_p = (double)cc.ChipCount / 10;
            double _MinRate = Normal_p + this.MinWinRate * (p - Normal_p);

            p = _MinRate;
            double b         = (double)this.CommSetting.Odds;
            double q         = 1 - p;
            double rate      = (p * b - q) / b;
            double cs        = Math.Sqrt(this.CommSetting.MaxHoldingCnt);
            Int64  AllAmount = (Int64)Math.Floor(RestCash * rate / cc.ChipCount);

            //this.UseAmountList.Add(this.LastUseData.LastData.Expect, AllAmount);
            return(AllAmount);
        }
Beispiel #2
0
 bool ITraceChance.CheckNeedEndTheChance(ChanceClass cc, bool LastExpectMatched)
 {
     throw new NotImplementedException();
 }
Beispiel #3
0
 long ISpecAmount.getChipAmount(double RestCash, ChanceClass cc, AmoutSerials amts)
 {
     throw new NotImplementedException();
 }
Beispiel #4
0
 public abstract long getChipAmount(double RestCash, ChanceClass cc, AmoutSerials amts);