This file contains 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 }, | |
payout: { type: 'multiplier', label: 'Payout', value: 2 } | |
}; | |
const dcheck = () => { try{ engine.getState() }catch(e){ return true } return false } | |
const emitter = { | |
on(name, func){this._s[name] = this._s[name] || []; this._s[name].push(func)},_s:{}, | |
emit(name, ...args){if(!this._s[name]){return; } this._s[name].forEach(f=>f(...args))} | |
} | |
const dice = dcheck(); |
This file contains 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 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
/** | |
* Calculates the base bet from the current wager, multiplier, and streak. | |
* | |
* @param {number} wager - The current wager. | |
* @param {number} multi - The multiplier. | |
* @param {number} streak - The streak. | |
* @returns {number} - The calculated base bet. | |
*/ | |
const getBaseBetFromCurrent = (wager, multi, streak) => (wager / (multi ** streak)); |
This file contains 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: 128}, | |
betSpeed: { type: 'number', label: 'Bet Speed', value: 800}, | |
maxBet: { type: 'balance', label: 'Max Bet', value: 10000 } | |
} | |
Object.entries(config).forEach(c => window[c[0]] = c[1].value); | |
var s = t => new Promise(r => setTimeout(r, t)); | |
for(let b = baseBet; ;b=Math.max(baseBet, b)){ | |
if (b > maxBet) break; | |
await this.bet(Math.round(b / 100) * 100, 2).then(r => { |
This file contains 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
import hmac | |
import hashlib | |
import binascii | |
import math | |
from collections import Counter | |
from scipy.optimize import curve_fit | |
import numpy as np | |
# Number of games to simulate (10 million) | |
num_games_to_simulate = 10_000_000 |
This file contains 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
/** | |
* Takes in an array of numbers and returns an array of streaks of numbers. | |
* @param {Array} results - An array of numbers. | |
* @param {Number} multiplier - The number that determines the streak. | |
* @returns {Array} - An array of streaks of numbers. | |
*/ | |
function getStreaks(results, multiplier) { | |
let streaks = new Array(); | |
let streak = new Array(); | |
for (let i = 0; i < results.length; i++) { |
This file contains 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 = { | |
target: { value: '', type: 'text', label: 'User to follow' }, | |
}; | |
log('Script is running..'); | |
engine.on('BET_PLACED', (bet) => { | |
if (bet.uname == config.target.value) { | |
if (userInfo.balance < 100) { | |
log('You have a balance under 1 bit, you can not bet'); |
This file contains 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
const baseBet = 1 * 100 // how many satoshis to bet initially | |
const target = 1.75 // target multiplier | |
const betMultiplier = 3.06 // what to multiply the bet size by when we lose a wager | |
const MAX_BET = 2000 * 100 // maximum bet amount to stop script at (satoshis) | |
const MAX_GAMES = -1 // maximum number of games to play before stopping (set to -1 for unlimited) | |
const BET_SPEED = 500 // time between bets in (ex 500 = 500ms = 0.5s) | |
let lossCount = 0 | |
this.log(`Starting martingale with a base bet of ${baseBet/100} bits.`) |
This file contains 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
/** | |
* Run-Length Encoding (RLE) text compression using Unicode symbols. | |
* | |
* This algorithm compresses text by counting the number of consecutive identical | |
* characters in the input string and representing them in a compact format within | |
* the compressed string using Unicode characters. The encoded and decoded parts | |
* are separated by a Unicode private-use character, U+FFF0. | |
* | |
* @param {string} inputText - The text to be compressed. | |
* @returns {string} - The compressed text. |
This file contains 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
/** | |
* Map a value from one range to another | |
* @param {number} value - The value to map | |
* @param {number} inMin - The minimum value of the input range | |
* @param {number} inMax - The maximum value of the input range | |
* @param {number} outMin - The minimum value of the output range | |
* @param {number} outMax - The maximum value of the output range | |
* @returns {number} The mapped value | |
*/ | |
const mapRange = (value, inMin, inMax, outMin, outMax) => { |
NewerOlder