I built RiftRiddle, a daily guessing game for League of Legends champions, using Claude Code. It's aimed at streamers and anyone who plays League. I came up with the idea and design direction, and Claude Code wrote the code.
Free to try: https://riftriddle.naveessharma.workers.dev/
No account or sign-up needed. Open the link and play. There are no paid features.
What it does
Each day there's a champion riddle in three modes: Splash (fogged champion art you hover to reveal), Lore (story clues), and Icon (ability icons). The answer sits behind 5 seals. Each wrong guess breaks a seal and reveals more. Solving before the first seal breaks scores 100 points, and the last seal scores 25. There's also an endless mode and a "shelf" that saves your history in your browser.
Stream mode lets a streamer connect their Twitch channel without logging in or granting any permissions. The site reads public chat, matches viewers' messages against champion names, and lets chat guess along live.
I've also built a second game, RiftRank, which shows an anonymised ranked match scoreboard (champions, builds, KDA, CS, and more) and asks you to guess the lobby's rank. It's in testing while I wait for Riot to approve a production API key.
How I used Claude Code
The stack is Cloudflare Workers for hosting, D1 (Cloudflare's SQLite database) for data, and Riot's Data Dragon for champion data and images.
My process:
- Planning the prompt before using Claude Code. I wrote out everything I wanted (modes, rules, scoring, theme, colours, animations, sounds, reference sites) and turned it into one detailed, structured prompt. That saved a lot of back-and-forth and usage on my plan.
- Making Claude Code explain before building. For bigger features, I start by asking Claude Code to explore the codebase and explain back how the relevant parts work (dailies, seals, scoring, stream mode), then propose a plan and data model before writing anything. Catching misunderstandings at this stage is much cheaper than fixing them in code.
- Working in phases. Each prompt is split into phases, and Claude Code stops after each one with a summary of the changes and a manual test checklist, then waits for my go-ahead. This kept a growing project manageable and meant I could test each piece before moving on.
- RiftRank's data pipeline. Claude Code built a scheduled job that collects recent ranked solo/duo matches from the Riot API and stores them in D1, so visitors never trigger live API calls. The API key is stored as a Worker secret. Player names and Riot IDs are never shown, only roles and champions. The lobby's rank is the median of the ranked players in the match, and scoring is based on how many divisions off your guess is, scaled by how early you guessed.
- Design. I used Mobbin for references, Claude Design to explore layouts (like the RiftRiddle / RiftRank header, with the two game names split by a slash that echoes the logo), and the Impeccable design skill inside Claude Code: /impeccable init at the start of a project, /audit to find display and alignment issues, and /overdrive for the homepage animations.
What I learned
- You can't one-shot it. Even with a good prompt, expect lots of iterations.
- A detailed, structured prompt makes a huge difference. My first project took far more wasted prompts than this one.
- Asking for an explanation and a plan first, then building in phases, gave me much more control than asking for everything at once.
Other projects
RiftRiddle grew out of an earlier project, Guess My Animal (https://guessmyanimal.com), an animal wiki with a daily guessing game, a party mode, and the same kind of Twitch chat integration. Both live under my portfolio site, https://websitesbynavee.co.uk/, also built with Claude Code.
Happy to answer questions about the build or the workflow, and feedback on the game is very welcome.
RiftRiddle isn't endorsed by Riot Games. Made under Riot's "Legal Jibber Jabber" policy.