Back to articles
I Built a Cyberpunk Color Memory Game — Here's How It Works
How-ToTools

I Built a Cyberpunk Color Memory Game — Here's How It Works

via Dev.tobiwu he

I've always been fascinated by how differently people perceive color. So I built DialIn — a cyberpunk-themed color memory game that tests your ability to remember and reproduce colors. How It Works The concept is deceptively simple: See a color flashed on screen Remember it Recreate it using a color picker Get scored on how close your guess is You play 5 rounds per game. The better you score, the higher your level climbs. Struggle too much? You drop down. It's addictive in that "just one more try" kind of way. The Scoring System This is where it gets interesting. I didn't want a simple "close or far" metric. I used CIEDE2000 — the same color difference algorithm used in professional color science. The scoring formula is an S-curve: score = 10 / ( 1 + ( deltaE / 25.25 ) ** 1.55 ) Where deltaE is the CIEDE2000 color difference between the original and your guess. This means: deltaE < 5 → You get 8-10 points (excellent match) deltaE ~ 25 → You get ~5 points (decent) deltaE > 50 → You get

Continue reading on Dev.to

Opens in a new tab

Read Full Article
3 views

Related Articles