Professional Documents
Culture Documents
Script Satoshi Mine Gabriel Menezes
Script Satoshi Mine Gabriel Menezes
Script Satoshi Mine Gabriel Menezes
/* in case the bot will click a bomb, bet will be adjusted on the next round to
compensate the loss.
the bot will set the bet again to the original value on the next next round.*/
var bigBet = bet/.039;
bigBet = Math.ceil(bigBet);
var risky_bet_chance = 0;
start_game();
function start_game() {
if(restart == 1){
if (risky_bet < risky_bet_chance) {
$('#bet').val(1.5*bigBet);
} else {
$('#bet').val(bigBet);
}
restart = 0;
} else {
if (risky_bet < risky_bet_chance) {
$('#bet').val(1.5*bigBet);
} else {
$('#bet').val(bet);
}
}
$('#start_game').click();
timeout1 = setTimeout(click_tile1, interval)
function click_tile1() {
}else{
timeout2 = setTimeout(cashout, interval);
}
}, interval);
function cashout() {
$('.game_right').first().find('.cashout').click();
timeout3 = setTimeout(start_game, interval);
} // end of cashout
function stopgame(){
clearTimeout(timeout1);
clearTimeout(timeout2);
clearTimeout(timeout3);
} // end of stopgame()
function search_last_bomb(){
var has_chosen = 0;
if($('.game_left').eq(1) != null && $('.game_left').eq(1).length > 0){
$('.game_left').eq(1).find('.board').find('li').each(function(i,elem){
if($(elem).hasClass('reveal')){
has_chosen = 1;
tile1 = $(elem).data('tile');
return false;
}
});
}
if(has_chosen == 0){
tile1 = Math.floor((Math.random() * 25) + 1);
}
} // end of searchLastBombTile()