diff --git a/bust/autobet-master.zip b/bust/autobet-master.zip new file mode 100644 index 0000000..49870d2 Binary files /dev/null and b/bust/autobet-master.zip differ diff --git a/bust/bustabit-autobet.png b/bust/bustabit-autobet.png new file mode 100644 index 0000000..93d27f1 Binary files /dev/null and b/bust/bustabit-autobet.png differ diff --git a/bust/help.txt b/bust/help.txt new file mode 100644 index 0000000..26aaa8a --- /dev/null +++ b/bust/help.txt @@ -0,0 +1,38 @@ +siddhartha +Siddhun9JB5AuPGo + +######################################################### +var arr = [100,100,300,500,800,1300,2100,3400,5400,8100,12200,18300,27400,41100,61700]; + + +var first = arr[0]; + +var iterator = arr.values(); + + + + +function if_lose() +{ + return iterator.next().value; +} + + +function if_win() +{ + iterator = arr.values(); + return iterator.next().value; +} + + + +function roundBit(bet) { + return Math.round(bet / 100) * 100; +} +############################################################### + +https://github.com/bustabit/autobet#how-to-write-a-script + +https://mtihc.github.io/bustabit-script-simulator/ + +https://gist.github.com/RHavar/e608bb389a5cfe2f01e1 \ No newline at end of file diff --git a/bust/till_now_sucess.js b/bust/till_now_sucess.js new file mode 100644 index 0000000..41a9dcf --- /dev/null +++ b/bust/till_now_sucess.js @@ -0,0 +1,23 @@ +/* 100 satoshis (1 bit) */ + +var config = { + +}; + +log('Simulation begins here...'); +var arr = [100,100,300,500,800,1300,2100]; +var iterator = arr.values(); + +engine.on('GAME_STARTING', function (res) { + log('a game is starting'); + engine.bet(iterator.next().value, 2); + log(res); +}); + + +engine.on('GAME_ENDED', function (res) { + log('a game is edded'); + log(res); +}); + + diff --git a/bust/trail.js b/bust/trail.js new file mode 100644 index 0000000..86cebb5 --- /dev/null +++ b/bust/trail.js @@ -0,0 +1,50 @@ +var config = { + +}; + +var iterifyArr = function (arr) { + var cur = 0; + arr.next = (function () { return (++cur >= this.length) ? false : this[cur]; }); + arr.prev = (function () { return (--cur < 0) ? false : this[cur]; }); + arr.reset = (function () { cur = 0; }); + return arr; +}; + +log('Simulation begins here...'); +/* 100 satoshis (1 bit) */ +var wagers = [100,100,200,300,500,800,1300,2100,3400,5400,8100,12200,900]; +//var wagers = [100,100,200,300,500,900]; +iterifyArr(wagers); + +const payout = 3; + +engine.on('GAME_STARTING', function (res) { + log('a game is starting'); + var wager = wagers.next(); + if(wager == 900) + { + wagers.reset(); + var wager = wagers.next(); + } + engine.bet(wager, payout); + log(res); +}); + + +engine.on('GAME_ENDED', function (res) { + log('a game is edded'); + log(res); + var lastGame = engine.history.first(); + if (lastGame.cashedAt) + { + // We won + // iterator = arr.reset(); + wagers.reset(); + log("we won"); + } + else + { + // We loss + log("we loss"); + } +});