js

js

qwq

var rand1 = Math.floor(Math.random() * rows);

var rand2 = Math.floor(Math.random() * columns);

if(!layout[rand1][rand2].mine){

layout[rand1][rand2].mine = true;

}else{

setMine();

}

Report Page