Пример #1
0
 protected override void internalPlaceBet(bool High, decimal amount, decimal chance)
 {
     Parent.updateStatus(string.Format("Betting: {0:0.00000000} at {1:0.00000000} {2}", amount, chance, High ? "High" : "Low"));
     Instance.Bet((double)chance, (double)amount, High);
 }
Пример #2
0
        void Bot_OnResult(Result result, bool IsMine)
        {
            if (IsMine)
            {
                if (result.win)
                {
                    Wins++;
                    PreRollCount = 0;
                    if (nudPreroll.Value == 0m)
                    {
                        lastBet = (double)nudStart.Value;
                    }
                    else
                    {
                        lastBet = 0;
                    }
                    Stop = StopOnWin;
                }
                else
                {
                    Losses++;
                    PreRollCount++;
                    if (PreRollCount == (int)nudPreroll.Value)
                    {
                        lastBet = (double)nudStart.Value;
                    }
                    else if (PreRollCount > (int)nudPreroll.Value)
                    {
                        lastBet *= (double)nudMultiplier.Value;
                    }
                    else
                    {
                        lastBet = 0;
                    }
                }

                if (chkZigBets.Checked && (Wins + Losses) % nudZigBets.Value == 0)
                {
                    High = !High;
                }
                if (chkZigLoss.Checked && Losses % nudZigLoss.Value == 0 && Losses != 0)
                {
                    High = !High;
                }
                if (chkZigWins.Checked && Wins % nudZigWins.Value == 0 && Wins != 0)
                {
                    High = !High;
                }
                Profit += double.Parse(result.this_profit);
                UpdateLable(lblWins, Wins + "/" + Losses);
                UpdateLable(lblBalance, Bot.Balance.ToString());
                UpdateLable(lblBets, (Wins + Losses).ToString());
                UpdateLable(lblProfit, Profit.ToString());
                if (Profit > (double)nudStopProfit.Value && chkStop.Checked)
                {
                    Stop = true;
                }
                if (!Stop)
                {
                    Bot.Bet((double)nudChance.Value, lastBet, High);
                }
                updatebets(String.Format("\r\n {4} --> bet {0} at {1} {2} and {3}", result.bet, result.chance, result.high?"High":"Low", (result.win?"won " + result.this_profit:"lost"), result.betid));
            }
        }
Пример #3
0
 private void btnBetHigh_Click(object sender, EventArgs e)
 {
     JD.Bet((double)nudChance.Value, (double)nudStake.Value, true);
 }
Пример #4
0
 protected override void internalPlaceBet(bool High, decimal amount, decimal chance, string Guid)
 {
     this.Guid = Guid;
     Parent.updateStatus(string.Format(System.Globalization.NumberFormatInfo.InvariantInfo, "Betting: {0:0.00000000} at {1:0.00000000} {2}", amount, chance, High ? "High" : "Low"));
     Instance.Bet((double)chance, (double)amount, High);
 }