There are 8 staking buttons and 22 columns on the panel.
<body id='body'>
<script>
var rate_20 = {};
var rate_22 = {};
var game_layout_name = ['Bar7','Bells','Apple','Lemon','Grape','Orange','Watermelon','Cherry','Luck'];
var game_layout = JSON.parse('[5,4,2,8,7,1,4,7,5,2,6,5,4,3,8,2,1,0,7,6,3,1]');
var game_grand = JSON.parse('[5,6,9,8,7]');
var game_rate = JSON.parse('[4,2,2,11.57788945,4,8,6,4,2,2,12,4,6,2,27.01507538,4,4,32,2,12,8,2]');
var game_rate_power = JSON.parse('[8,15,16,29,8,4,6,8,16,16,4,8,5,24,39,8,8,3,16,4,6,16]');
var game_rate_rand = JSON.parse('[0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,11,11,11,11,11,11,11,11,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,16,16,16,16,16,16,16,16,17,17,17,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,19,19,19,19,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21]');
var loopcount = 10000*100;
var tot_rate = 0;
var game_rate_rand_length = game_rate_rand.length;
var layout_value = [0,0,0,0,0,0,0,0,0];
for(var i=0; i<game_rate.length; i++){
var layout_index = game_layout[i];
var r = game_rate[i];
var p = game_rate_power[i];
layout_value[layout_index] += r*p;
}
var html = "<table width='100%'>";
html+= "<tr>";
for(var i=0;i<game_layout_name.length;i++){
html+= "<th>"+game_layout_name[i]+"</th>";
}
html+= "</tr>";
html+= "<tr>";
for(var i=0;i<layout_value.length;i++){
html+= "<td>"+layout_value[i]+"</td>";
}
html+= "</tr>";
html+= "</table>";
document.getElementById("body").innerHTML+= html;
for(var i=0; i<loopcount; i++){
var g = Math.floor(Math.random()*game_grand.length);
var rate_g = game_grand[g];
var r = get_rand([3,14]);
var r22 = game_rate_rand[r];
var rate = game_rate[r22] * rate_g;
tot_rate += rate;
if(game_rate[r22]==0) console.log("error",r22,r)
}
console.log(100*tot_rate/loopcount/8);
loopcount = 10000*100;
tot_rate = 0;
for(var i=0; i<loopcount; i++){
var r = get_rand([]);
var r22 = game_rate_rand[r];
var rate = game_rate[r22]
if(rate_22[r22]==undefined) rate_22[r22]=0;
rate_22[r22] += 1;
tot_rate += rate;
}
for(i in rate_22){
console.log(i,game_rate[i],game_rate_power[i],100*rate_22[i]/loopcount);
}
console.log(100*tot_rate/loopcount/8);
var tot_rate = 0;
rate_20 = {3:0,14:0};
for(var i=0; i<loopcount; i++){
var r1 = get_rand([3,14]);
var r2 = get_rand([3,14,r1]);
var r3 = get_rand([3,14,r1,r2]);
r22 = game_rate_rand[r1];
rate = game_rate[r22]
if(rate_20[r22]==undefined) rate_20[r22]=0;
rate_20[r22] += 1;
tot_rate += rate;
r22 = game_rate_rand[r2];
rate = game_rate[r22]
if(rate_20[r22]==undefined) rate_20[r22]=0;
rate_20[r22] += 1;
tot_rate += rate;
r22 = game_rate_rand[r3];
rate = game_rate[r22]
if(rate_20[r22]==undefined) rate_20[r22]=0;
rate_20[r22] += 1;
tot_rate += rate;
}
for(i in rate_20){
console.log(i,game_rate[i],game_rate_power[i],100*rate_20[i]/loopcount/3);
}
console.log(100*tot_rate/loopcount/8/3);
function get_rand(list)
{
var r = Math.floor(Math.random()*game_rate_rand_length);
var r22 = game_rate_rand[r];
if(list.indexOf(r22)>-1){
return get_rand(list);
} else return r;
}
</script>