|
|
|
|
|
by _mc
4433 days 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 |
|