News for hackers. Stuff that matters.
Re:Guess My RGB by tetris11 on Sunday March 31, 2024 @03:15PM (#39887151)
I had an updated version which implemented a binary search, but I couldn't update my previous comment so I dropped it. That being said, due to the scoring function `score(r,g,b,rr,gg,bb)` giving the exact same score sometimes for neighbouring colors, the search would still have to repeat and wasn't much more optimal than the code you see above.

There are no comments on this comment yet.