Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var config = {};
- var base_amount = 2, amount = base_amount;
- var losses = 1, vlosses = 21;
- var playing = true;
- engine.on('GAME_STARTING', function () {
- if(playing) {
- log(losses + ' losses, betting with ' + amount.toFixed(4));
- engine.bet(parseInt(amount) * 100, 91);
- }
- });
- engine.on('GAME_ENDED', function (game) {
- if(parseInt(game.bust) < 91){
- losses++;
- amount = 0.97 * Math.exp(0.0112 * losses);
- amount = amount * 2;
- if (losses > 750){ playing = false; }
- }else{
- playing = true;
- log('won ' + (parseInt(amount) * 91)+' bits, restarting');
- amount = base_amount;
- losses = vlosses = 1;
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment