News for hackers. Stuff that matters.
Re:ColorRun – Simple browser game about colors by adad on Saturday August 16, 2014 @06:26PM (#8187787)

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

  setInterval('action()',0);
Re:ColorRun – Simple browser game about colors by lukaszmtw on Saturday August 16, 2014 @06:30PM (#8187798)
Hey, why are you cheating? That's so rude for people playing normal.
Re:ColorRun – Simple browser game about colors by dylanz on Saturday August 16, 2014 @06:33PM (#8187808)
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!
Re:ColorRun – Simple browser game about colors by lukaszmtw on Saturday August 16, 2014 @06:35PM (#8187820)
Thanks! :)
Re:ColorRun – Simple browser game about colors by icedog on Saturday August 16, 2014 @07:50PM (#8188029)
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.
Re:ColorRun – Simple browser game about colors by darkstar999 on Saturday August 16, 2014 @07:00PM (#8187881)
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.
Re:ColorRun – Simple browser game about colors by cherry_su on Saturday August 16, 2014 @08:16PM (#8188099)
I get a dialog that says "Don't hack" -- must have been fun to watch while it lasted.
Re:ColorRun – Simple browser game about colors by jgillich on Saturday August 16, 2014 @08:31PM (#8188130)
Just increase the timeout to 250.
Re:ColorRun – Simple browser game about colors by dylanz on Saturday August 16, 2014 @06:30PM (#8187801)
That was fantastic, thanks for sharing. Those susceptible to siezures should not try this.