Exemple #1
0
 public PropertyInfo GetFirtTargetedPropertyInfo()
 {
     if (PropertyInfo != null)
     {
         return(PropertyInfo);
     }
     if (BaseSite == null)
     {
         return(null);
     }
     return(BaseSite.GetFirtTargetedPropertyInfo());
 }
Exemple #2
0
        public static void Main(string[] args)
        {
            //Initialize the site you want to test
            Site = new Bitsler();
            //Create a list of param values
            List <BaseSite.LoginParamValue> param = new List <BaseSite.LoginParamValue>();

            foreach (var x in Site.LoginParams)
            {
                Console.Write(x.Name + ": ");
                string value = Console.ReadLine();
                param.Add(new BaseSite.LoginParamValue
                {
                    Param = x,
                    Value = value
                });
            }

            //subscribe to site events
            Site.BetFinished          += Site_BetFinished;
            Site.Error                += Site_Error;
            Site.LoginFinished        += Site_LoginFinished;
            Site.Notify               += Site_Notify;
            Site.OnResetSeedFinished  += Site_OnResetSeedFinished;
            Site.OnTipFinished        += Site_OnTipFinished;
            Site.OnWithdrawalFinished += Site_OnWithdrawalFinished;
            Site.StatsUpdated         += Site_StatsUpdated;

            //Log in using the params
            Site.LogIn(param.ToArray());
            Site.Currency = 1;
            Console.WriteLine("Wait for site to finish logging in then press enter");
            Console.ReadLine();
            Console.WriteLine("Placing test bet");
            //Site.PlaceBet(new PlaceDiceBet(100000001, false,75 ));
            NextTest();
            Console.WriteLine("Press enter to reset seed");
            Console.ReadLine();
            Site.ResetSeed();
        }
Exemple #3
0
 public int CalculateWinnableType(BaseSite Site)
 {
     if (Chance >= 50 && Roll > Site.MaxRoll - Chance && Roll < Chance)
     {
         WinnableType = 1;
     }
     else if (Chance < 50 && Roll < Site.MaxRoll - Chance && Roll > Chance)
     {
         WinnableType = 2;
     }
     else if (GetWin(Site))
     {
         WinnableType = 3;
     }
     else
     {
         WinnableType = 4;
     }
     //check if roll is between overlap
     //else if chance <50% check if roll is between non overlap
     //else if win
     //else if loss
     return(WinnableType);
 }
Exemple #4
0
 public override bool GetWin(BaseSite Site)
 {
     throw new NotImplementedException();
 }
Exemple #5
0
 public abstract bool GetWin(BaseSite Site);
Exemple #6
0
 public override bool GetWin(BaseSite Site)
 {
     return(((bool)High ? (decimal)Roll > (decimal)Site.MaxRoll - (decimal)(Chance) : (decimal)Roll < (decimal)(Chance)));
 }