I think the game has been updated, now the opacity of both colors are the same (255) but you can sum R, G and B parts. The highest will be the brightest.
function c(i,j){return $("#color-"+i)[0].getContext('2d').getImageData(0,0,1,1).data[j]}
setInterval(function(){$("#color-"+(1+(c(1,0)+c(1,1)+c(1,2)<c(2,0)+c(2,1)+c(2,2)))).click()},1)
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!
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.
Surprisingly fun. Suggestion: Take a big chunk out of the timer when the wrong choice is clicked, so a sense of urgency is created instead of immediately ending the game.
Got to 938 points on my first go. Discovered you can also use left and right arrow keys, which is much more efficient and got me to 1566 on my second go. Thanks for the game
Hah. I got to 896 using a broken laptop trackpad. When I discovered left and right arrow keys, I started averaging 30 because I kept on tapping the wrong direction.
Surprisingly fun game - good work! Made it to 204 points on my first play. No idea if that's any good. It would be nice to have some sort of indicator so I know how good it is (if you don't want to do a leaderboard maybe calculate an average score?).
Hi! Probably you don't know, but we are only 15 and 16 years old. If you enjoyed this game you can make donation to our bitcoin address so we can make another fun projects: 1EgxGUYrvrkHRYMJFaxrReVsGSukJfT3Yb Thank you guys for all help! :)
I thought midway through playing this that it would be another CSS history hack, so I started answering incorrectly to make sure my score went down (which it did).
Is there a better way to figure out if a game is trying to hijack my history?
Why is that? If you assume each side is pointing to the same link, but with different styles for visited and unvisited, the colours will always be different.
Fun, but I'm disappointed that I'm limited to touch instead of clicking on my touchscreen laptop (Lenovo Yoga 13). This only seems to be an issue when I use Chrome/Opera.
You won't be able to avoid clones which is probably why you're being down voted, but fwiw it works really well with a touch screen and would make a great app.