JSFiddle - React, Tailwind, and code Playground

by NicosKaralis

JavaScript

https: //satoshimines.com/play/35f95cda357de6d75dc200e648276a94532d8cbd/#DONT_SHARE_URL
DDvE17N9rVbysdEbAwa74FeHEkF8prxgk9
// last game error idexes
$('.feed .game:first .game_left .board li.reveal').map(function (i, e) {
    return $(e).data('tile')
})

// bet on box 7
games[14].guess($('.game:last .game_left .board li[data-tile=7]'));
// cashout
games[14].cashout();

// Working
busy

var betAmount = parseFloat(parseInt($("#bet").val().replace(/[^0-9]+/g, "")) / 1e6).toFixed(6),
    numberOfMines = $(".mine_options button.active").text().replace(/[^0-9]+/g, "");

$("#start_game").attr("disabled", "disabled").spin();
games.push(new Game(betAmount, void 0, numberOfMines))

// set bet value
var balance = read_balance()
$("#bet").val(minbet)
$("#bet").val(10)



// Later on I will test this with 3 or 5 bombs
// for the moment try not to change the number of bombs (numberOfBombs)
// because i did not had time to test in each possible way
var numberOfBombs = 1, // Needs to be 1, 3, 5, or 24, cannot be anything else
    numberOfRoundsBeforeAllIn = 3, // If a bomb is placed on the same position this many times, all in
    baseBet = minbet, // minbet, maxbet or integer number
    martingale = true, // Increase on loss
    multiplier = 2.7, // How much should it increase the bet
    onlyBetAllIn = true; // If true will cashout every game without playing and will only play if three games have bombs on the same place

var previous_bombs = [],
    matchingBombs = 0,
    stop_on_win = false,
    forcefull_stop = false,
    gameCreated = false,
    ballsDeep = false;

Array.prototype.equals = function (array) {
    if (!array) return false;
    if (this.length != array.length) return false;
    for (var i = 0, l = this.length; i < l; i++) {
        if (this[i] instanceof Array && array[i] instanceof Array) {
            if (!this[i].equals(array[i])) return false;
        } else if (this[i] != array[i]) {
            return false;
        }
    }
    return true;
};
game_stop...