var minValue = 0.0005,
maxLoss = 10000000000000,
aimedProfit = 30,
maxOps = 500000000000000,
endResult = 0,
ops = 0,
bet = function (a, b, c) {
var seed = window.document.getElementById('next_client_seed').value;
$.get("?op=double_your_doge&m=" + (b ? "lo" : "hi") + "&stake=" + a + "&multiplier=2&jackpot=0&client_seed=" + seed, function (d) {
d = d.split(":");
$("#balance").html(d[3]);
c(a, b, "w" === d[1])
})
}, martingale = function (a, b, c) {
c || a >= maxLoss && 0 !== maxLoss ? (b = !b, newValue = minValue) : newValue = 2 * a;
endResult = c ? endResult + a : endResult - a;
console.log((c ? "+" : "-") + a);
ops++;
(ops < maxOps || 0 === maxOps) && (endResult < aimedProfit || 0 === aimedProfit) ? bet(newValue, b, martingale) :
(console.log("Martingale finished in " + ops + " operations!"), console.log("Result: " + endResult))
};
martingale(minValue, !1, !1);
bconfig = { maxBet: 0.00032768, wait: 500, toggleHilo:false }; hilo = 'lo'; multiplier = 1; rollDice = function() { if ($('#double_your_doge_bet_lose').html() !== '') { $('#double_your_btc_2x').click(); multiplier++; if(bconfig.toggleHilo)toggleHiLo(); } else { $('#double_your_doge_min').click(); multiplier = 1; } if (parseFloat($('#balance').html()) < (parseFloat($('#double_your_btc_stake').val()) * 2) || parseFloat($('#double_your_doge_stake').val()) > bconfig.maxBet) { $('#double_your_doge_min').click(); } $('#double_your_doge_bet_' + hilo + '_button').click(); setTimeout(rollDice, (multiplier * bconfig.wait) + Math.round(Math.random() * 100)); }; toggleHiLo = function() { if (hilo === 'lo') { hilo = 'lo'; } else { hilo = 'lo'; } }; rollDice()