This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* BustabitAudio class | |
*/ | |
(function () { | |
window.BustabitAudio = function () { | |
this.audio = { | |
won: new Audio("https://www.soundjay.com/misc/small-bell-ring-01a.mp3"), | |
lost: new Audio("http://www.freesfx.co.uk/rx2/mp3s/5/16873_1461333020.mp3") | |
}; | |
this.audio.won.volume = 0.5; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var config = { | |
}; | |
/* | |
~~~~~~ Krampus v11 final ~~~~~~ | |
~~ gamblebot for Bustabit.com | |
~ a fork of CorpseKey v8-prealpha | |
~~ by MathWins aka Gambletron5000 aka Neti | |
CHANGABLE SETTING(s) NOT TESTED, BEWARE CHANGING |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var results = []; | |
engine.on('GAME_ENDED', function() { | |
results.push(engine.history.first().bust); | |
dumpResults(results); | |
}) | |
var dumpResults = (function() { | |
'use strict'; | |
var timeWindow = 100; | |
var timeout; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var config = { | |
i: { type: 'noop', label: 'Oscar\'s Grind V2 Universal'}, | |
a: { type: 'balance', label: 'Unit Size', value: 1000 }, | |
c: { type: 'number', label: 'Bet Speed', value: 100 } | |
}; | |
Object.entries(config).forEach(c=>window[c[0]]=c[1].value); | |
var dice = (()=>{try{engine==true;return !1;}catch(e){return !0;}})(); | |
var sleep = t => new Promise(r => setTimeout(r, t)), b=1.98, d=a, e=0; | |
var round = b => Math.max(100, Math.round(b / 100) * 100); | |
var next = r => {r<b?e-=d:(e+=d,e<a&&(d=e+d+a>a?a-e:d+a),e>=a&&(e=0,d=a))}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let betCount = 0; | |
let totalOut = 0; | |
let totalIn = 0; | |
let queueSize = 200 | |
let queue = new Array(queueSize); | |
let running = true; | |
const doResult = async function (context, result) { | |
totalIn++; | |
context.log(`Current Bets IN/OUT ${totalIn}/${totalOut} | Total Bets ${betCount}`); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var config = { | |
baseBet: { label: 'Base Bet', type: 'balance', value: 1000 }, | |
minPayout: { label: 'Target Min', type: 'multiplier', value: 1.08 }, | |
maxPayout: { label: 'Target Max', type: 'multiplier', value: 50.00 }, | |
divPayout: { label: 'Target Div', type: 'multiplier', value: 0.80 }, | |
compRate: { label: 'Compound %', type: 'multiplier', value: 0.02 }, | |
compStep: { label: 'Compound At', type: 'multiplier', value: 1.10 }, | |
betSpeed: { label: 'Bet Speed', type: 'multiplier', value: 100 } | |
}; | |
Object.entries(config).forEach((c) => window[c[0]] = c[1].value); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var config = {}; | |
var StartingBet = 50000; //(INTEGER) Initial bet in satoshis. (100 * 100 = 100 bits = 10,000 satoshi) | |
var AutoCashout = 2000; //(INTEGER) Will Cashout at 20x if the highest bet didn't cashed out yet. | |
var IncreaseOnLoss = 1.5; //(FLOAT) Will increase +1.30x of the last bet if lost. | |
var simulate = true; | |
var simWager = 0; | |
var simCashed = 0; | |
var simBalance = 5000 * 100; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var config = { | |
baseBet: { type: 'balance', label: 'Base Bet', value: 50 }, | |
basePayout: { type: 'multiplier', label: 'Base Payout', value: 5 }, | |
baseMulti: { type: 'multiplier', label: 'Bet Multi', value: 1.2 }, | |
postBet: { type: 'number', label: 'Post Bet', value: 1 }, | |
}; | |
let currentBet = config.baseBet.value; | |
let startBal = userInfo.balance; | |
let prevBal = userInfo.balance; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var config = { | |
baseBet: { type: 'balance', label: 'Base Bet', value: 2000 }, | |
payout: { type: 'multiplier', label: 'Payout', value: 1.5 }, | |
betAdj: { type: 'number', label: 'Multi Adj', value: 0.8 }, | |
betPrc: { type: 'text', label: 'Precision', value: '1e4' } | |
}; | |
Object.entries(config).forEach(c=>window[c[0]]=c[1].value); | |
let curBet = baseBet, curProb = 0, reqProb = 1; | |
let numGames = 0, numHits = 0, avgGames = 20 * payout; | |
engine.on('GAME_STARTING', ()=>{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var config = { | |
baseBet: { type: 'balance', label: 'Base Bet', value: 100 }, | |
minPayout: { type: 'multiplier', label: 'Min Payout', value: 1.3 }, | |
maxPayout: { type: 'multiplier', label: 'Max Payout', value: 4.5 }, | |
incPayout: { type: 'number', label: 'Inc Payout', value: 1.5 } | |
}; | |
Object.entries(config).forEach(c=>window[c[0]]=c[1].value); | |
let currBet = baseBet, currPayout = minPayout; | |
engine.on('GAME_ENDED', ()=>{ | |
let lastGame = engine.history.first(); |