Pinned Loading
-
Dynamic Pattern System v1.4 work in ...
Dynamic Pattern System v1.4 work in progress prototype for bustabit/bustadice scripts. 1// ----------------------- V1.4 -------------------------2// This utility function will check an array of game results for a given pattern and return the most recent occurrence of a3// match. The pattern is specified using a regex-style syntax that uses the available tokens defined in the token list. The4// token list is an array of objects containing a token letter and a callback function that is used to check if the game results5// match the specified condition. It returns an array containing the game result objects for the matched results. -
A few martingale oriented inverse ut...
A few martingale oriented inverse utility functions. 1/**2* Calculates the base bet from the current wager, multiplier, and streak.3*4* @param {number} wager - The current wager.5* @param {number} multi - The multiplier. -
Probability functions (codex generated)
Probability functions (codex generated) 1// Cumulative Geometric Probability2function getGeoProb(p, n) {
3return (1 - Math.pow(p, n)) / (1 - p);
4}5 -
A set of Array utils which I use (It...
A set of Array utils which I use (It should be noted that some are dependent on others) 1// Calculates the sum of the items in the array.2// The sum is the result of adding all the items together.3Array.prototype.sum = function(){
4return this.reduce((a, b) => a + b);
5} -
Iterative run probability
Iterative run probability 1// Probability of a r or more consecutive heads in n tosses2// of a coin having probability p of heads3// P(i) = P(i-1) + [1 - P(i-r-1)] * (1-p)p^r, for i > r4// P(r) = p^r5// P(i) = 0, for i < r -
bustabit median helper function
bustabit median helper function 1engine.median = function (span) {
2let arr = engine.history.slice(0, (span ? Math.max(1, Math.min(50, span)) : 50)).map(a => a.bust).sort((a, b) => { return a - b })
3let mid = arr.length / 2, med = mid % 1 ? arr[mid - 0.5] : (arr[mid - 1] + arr[mid]) / 2;
4return med;
5};
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.




