4/20/2025 at 9:19:11 PM
I was wondering if it got harder or if it's just random: function generateColors(difficulty, blacklist) {
...
let sample = Math.floor(Math.min(Math.max(0, 1-Math.pow(1-difficulty, 1.5)), .99)*5);
let distance = (5 - sample)/5;
...
}
function setupRound(blacklist) {
...
const data = generateColors(currentRound/totalRounds, blacklist);
...
}
Plotting that first magic: https://lucb1e.com/randomprojects/js/testformula.htm#%24%28%... round# difference
0-- 2 5
3-- 5 4
6-- 9 3
10--13 2
14--20 1
The "blacklist" parameter prevents that you get the same challenge twice. Note also that it submits every answer to the server (fine imo, but I think it would be even nicer if this was mentioned on the page)
by lucb1e
4/21/2025 at 12:29:30 AM
I appreciate https://lucb1e.com/randomprojects/js/testformula.html, it's a cool idea!by tennysont
4/21/2025 at 1:53:25 AM
Happy to hear, though note the file is without l (lowercase L) in the end (I guess autocorrupt is to blame here?). Fun fact: if you remove the filename, it'll show you all the crap in that directory, listing this file as being last modified in 2015-09-27. If past performance is an indicator, it should be stable to use for the next ten years as well :Dby lucb1e
4/21/2025 at 9:40:45 AM
Thanks for posting, I thought the same thing... my (useless data point of one) results showed 100% accuracy except the last four, which I thought "wow, I am just guessing now, can literally not see a difference".by readingnews