BustaBit Martingale Script Bot


SUBMITTED BY: raiborne

DATE: Nov. 17, 2015, 1:28 p.m.

FORMAT: Text only

SIZE: 863 Bytes

HITS: 1246

  1. I took the martingale strategy and slightly modified it, to make sure it starts at my base bet, and to allow me to bet with my choice of payout multiplier:
  2. Code:
  3. var baseBet = 1; // in Bits
  4. var mult = 2.01;
  5. var satoshis = baseBet * 100;
  6. var crash = Math.floor(mult*100 + 1e-6);
  7. var currentBet = false;
  8. engine.onGameStarting = function () {
  9. if (currentBet && engine.lastGameWasLost()) {
  10. currentBet *= 2;
  11. console.log('double bet to', currentBet/100);
  12. } else {
  13. currentBet = satoshis;
  14. console.log('reset bet to', currentBet/100);
  15. }
  16. if (currentBet < engine.getBalance()) {
  17. console.log('place bet of', currentBet/100, 'at', crash/100);
  18. engine.placeBet(currentBet, crash, false);
  19. }
  20. else {
  21. engine.stop();
  22. console.log('You ran out of bits :(');
  23. }
  24. };

comments powered by Disqus