Hacker News new | ask | show | jobs
by adad 4322 days ago

  function action(){
    if($('#color-1').css('opacity') > $('#color-2').css('opacity')){
      $('#color-1').trigger('click');
    }else{
      $('#color-2').trigger('click');
    } 
  };

  setInterval('action()',0);
4 comments

Hey, why are you cheating? That's so rude for people playing normal.
Because 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!
Thanks! :)
You 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.
Blast! 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.
I get a dialog that says "Don't hack" -- must have been fun to watch while it lasted.
Just increase the timeout to 250.
That was fantastic, thanks for sharing. Those susceptible to siezures should not try this.