bb


SUBMITTED BY: eminence

DATE: March 17, 2016, 8:12 a.m.

FORMAT: Text only

SIZE: 1.1 kB

HITS: 1576

  1. var BB = 1; // BITS, chose a suitable amount which you can afford.
  2. var cashout;
  3. var mult;
  4. // set one of mult or cashout, and the other will be calculated for you:
  5. // mult = 1.12;
  6. cashout = 1.5;
  7. var streakSecurity = 4;
  8. // what percentage to increase the net profit by each time we lose a bet; 0 for pure martingale
  9. greed_percent = 5;
  10. if (!mult)
  11. mult = cashout / (cashout - 1) * (1 + greed_percent/100);
  12. else if (!cashout)
  13. cashout = mult / (mult - 1) * (1 + greed_percent/100);
  14. var satoshis = BB * 100;
  15. var crash = Math.floor(cashout*100 + 1e-6);
  16. var currentBet = false;
  17. engine.on('game_starting', function () {
  18. if (currentBet && engine.lastGamePlay() === 'LOST')
  19. currentBet *= mult;
  20. else
  21. currentBet = satoshis;
  22. if (currentBet < engine.getBalance()) {
  23. console.log('place bet of', Math.round(currentBet/100), 'at', crash/100);
  24. engine.placeBet(Math.round(currentBet/100)*100, crash, false);
  25. }
  26. else {
  27. engine.stop();
  28. console.log('You ran out of bits :(');
  29. }
  30. });

comments powered by Disqus