6 ms·
What I learnt : We need to embrace randomness to keep life simple! Could not complete the game with a "monotonous" set of instructions; function solve(i, selec
by _mc 12y ago
What I learnt : We need to embrace randomness to keep life simple! Could not complete the game with a "monotonous" set of instructions;
function solve(i, selector)
{
if(i > 0) {
if(selector('a' || Math.floor((Math.random()*100)+1) % 3 == 0) == null){
setTimeout(function(){ solve(i,selector);}, 1000);
} else {
selector('a').click(); solve(i-1,selector);
}
}
}
solve(1400,$); //worked thrice under 1400