News for hackers. Stuff that matters.
Re:Will you drown? by _mc on Sunday April 27, 2014 @05:23AM (#7654479)
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

There are no comments on this comment yet.