4 ms·
I'm virtually rich var seq = '0000001000011000101000111001001011001101001111010101110110111111'; var index = 0; setInterval(function(){ captureKeyFunc({code :
by brospars 8y ago
I'm virtually rich
var seq = '0000001000011000101000111001001011001101001111010101110110111111'; var index = 0; setInterval(function(){ captureKeyFunc({code : seq[index%seq.length] === '1' ? 'ArrowLeft':'ArrowRight', preventDefault: function () {}}); index++; }, 10);
- ben174 8y agoWhy use seq rather than Math.random()?
- deleted 8y ago[deleted]
- brospars 8y agoBecause it's an exploit (read top comment)
- turblety 8y agoAdapted to use Math.random setInterval(function(){ captureKeyFunc({code : Math.round(Math.random()) === 1 ? 'ArrowLeft':'ArrowRight', preventDefault: function () {}}); }, 10);
- brospars 8y agoWith Math.random you get ~50% win, with the sequence you get 85% because it's an exploit