I built a daily Wordle-style game for football kits

2026-11-29来源 dev.toEnglish

Every football fan can name a club from its shirt. Far fewer can name the season. That gap is the whole idea behind Kit Detective, a small daily game I shipped this week: you get one cropped piece of a football kit, six guesses, and you have to name the club and the season.

How it plays

  • One puzzle a day, the same for everyone, in the spirit of Wordle.
  • Guess a club and a year. A wrong club tells you if you are in the right league or the right country. A wrong year tells you warmer or colder.
  • Six guesses. The reveal shows the full kit with its photo credit.
  • No sign-up, no account, no ads. Just the game and a shareable result grid.

There is also a practice mode and an archive of past kits, so a new visitor is not stuck waiting for midnight.

The build

It is a small Next.js app with plain CSS, deployed free on Vercel:

  • The game itself is one client component holding the guess state, the warm/cold logic and the share text.
  • Puzzles live in a plain data file: kit image, club, season, and the credit block for the photo.
  • Each puzzle also gets its own static page so results can be linked and shared, plus a sitemap and robots file for the basics.

The part that took the longest was not the code. It was the images.

Licences are the hard part

Football kit photos are mostly copyrighted. Rather than scrape and hope, every image comes from Wikimedia Commons with a licence I checked by hand: CC BY-SA or CC0, attribution recorded next to the file. Every reveal shows the credit, and there is a credits page listing the source file for each kit.

If you are building anything that shows club or league imagery, budget real time for this. A takedown or a wrong licence is a much worse outcome than a slower launch.

What I would do differently

  • Start with fewer kits. Twenty was more licence work than I expected.
  • Decide the reveal screen before the game logic. The result card is what people share, and it drove several layout decisions late.

The game is live at kit-detective.vercel.app. If you play it and the guessing feels too easy or too cruel, I would like to hear which.

Written with AI assistance.

原文:https://www.a8q9.cn/en/article/i-built-a-daily-wordle-style-game-for-football-kits-19a19f.html

相关文章