2 ms·
function action(){ if($('#color-1').css('opacity') > $('#color-2').css('opacity')){ $('#color-1').trigger('click'); }else{ $('#color-2').tri
by adad 12y ago
function action(){
if($('#color-1').css('opacity') > $('#color-2').css('opacity')){
$('#color-1').trigger('click');
}else{
$('#color-2').trigger('click');
}
};
setInterval('action()',0);
- lukaszmtw 12y agoHey, why are you cheating? That's so rude for people playing normal.
- dylanz 12y agoBecause this is "hacker"news and people here like to reverse engineer things! Also, great work with the game. It's really fun and quite an interesting mind game once it starts getting faster and faster. I agree with the mobile app sentiment... it would be a fun game to play on a commute. Great job!
- lukaszmtw 12y agoThanks! :)
- icedog 12y agoYou could create a backend service that generates 1px swatches of a color; of course, this will only make it one step more difficult to cheat.
- dylanz 12y agoThat was fantastic, thanks for sharing. Those susceptible to siezures should not try this.
- darkstar999 12y agoBlast! I came to the comments to post nearly the same code. Thanks though, yours is slightly better. I didn't know about .css(). It would be interesting to see a pure javascript implementation.
- cherry_su 12y agoI get a dialog that says "Don't hack" -- must have been fun to watch while it lasted.
- jgillich 12y agoJust increase the timeout to 250.
- deleted 12y ago[deleted]