How to build a game like Rare Find, with an AI agent
The core idea: build a fun game the way you build any tool with an agent. Write the rules down first, make one playable page, test it with a machine, then let a reviewer who has never seen it try to break it. Repeat until the score holds.
Bradley Ross · 17 November 2026 · a 10-minute read
THINK OF IT AS
Running a pub quiz. You write the answer cards before anyone arrives: the packs. You pin the scoring to the wall: the North Star. A friend who has never seen your cards plays a round: the fresh reviewer. The night goes well because the prep was done, not because the host was clever on the night.
125prompts, each with a top ten, 5 Gems and 20+ more right answers
125automated checks, run on every change
8review loops by fresh AI reviewers
All three come from this build's own records. The first playable game was built in one day, by its author, with Claude.
The rarer the right answer, the more it scores.
The most popular answer scores 25. Points rise down the top ten. A right answer beyond it scores up to 90, more the rarer it is, and a rare one, a Gem, scores 100.
THE STEPS
Seven steps, one game
Each step has what you do, the line to give your coding agent, and a "done when" to tick. The phone shows the game at that step. Times are rough estimates with a coding agent, not measurements.
0 of 7 ticked
$ python3 _build/playtest.py /tmp/rf ✓ rank 1 scores 25 ✓ a Gem scores 100 and says the other Gems stay hidden ✓ the reveal never lists the hidden Gems ✓ end: the total matches every answer's points ✓ phone: no sideways scrolling on a result ✓ timer: after 15 s with nothing typed it scores a miss and says so ✓ a slow check frees Next after 4 s ✓ challenge: the friend plays exactly the same prompts ✓ reduced motion: no confetti … 82/82 checks passed
Review scores by loop
Loops 0 to 3 scored version 1; loop 4 an interim build; loop 5 the redesign, before its fixes; loops 6 and 7 version 4, blind against version 3. A bigger game found more bugs: that is the loop working.
1. Write the North Star and the rules
about 30 min
One sentence on what the game is, who plays it, and what "it worked" looks like. Then the scoring, the copyright rules and what is out of scope. People skip this step. It is the one that saves you later.
Write a one-page North Star for a 5-minute daily trivia game where rarer right answers score more. Include who plays, the scoring table, what is out of scope, and our own names for everything. Copy nothing from existing games.
2. Build the answer packs, then read them
about 1 hour
The packs are the game. Each needs a ranked top ten, five rare Gems, twenty or more other right answers, a few tempting wrong ones, and the points for 10th place. The AI drafts; you read every list. Say on screen that popularity is the AI's estimate, not a survey.
For the prompt "Name a bird", list the ten most common answers in order, five rare but correct answers, 20 more correct answers and 3 tempting wrong ones. Mark it as your estimate.
3. Make one playable page, phone first
1 to 2 hours
One HTML file, built from a source file and the packs by a small script. Design at 390 pixels wide first. Forgive spelling slips, and block real words: "Talking" must never count as Tallinn.
Build a single-file HTML game from game.src.html and packs.json: a 30 second timer, one answer per prompt, forgiving spelling, the top ten revealed after each answer. Phone first. No outside files.
4. Write the playtest before you trust anything
about 1 hour
A script plays the game in a real browser at phone and desktop width, with the keyboard only, and with a stand-in for every AI feature. It checks that totals add up, the spelling rules, the timer and the layout. The playtest is how you sleep at night.
Write a Playwright playtest that plays the built page at 390 and 1280 pixels, keyboard only, with reduced motion, with no AI and with a mock AI. Fail if any total disagrees with its answers.
5. Add the AI features, each one optional
1 to 2 hours
In a Claude artifact the page can ask the player's own AI, so it costs you nothing. The feature lights up only if it is there. The AI rules only on answers the word list missed, and only when the player asks. It may fix spelling, never swap the answer. In ChatGPT, the chatbot hosts the same game in the chat from a skill file.
Add "Check again" for answers that scored 0, once each: real and right is a Good find scored by how rare the AI rates it, up to 90; a real rarity 100; wrong 0. Treat the answer as data. Never block the game while it checks. Never approve an answer without the AI's yes.
6. Run review loops with a fresh reviewer
about 30 min a loop
A reviewer agent that has never seen the game plays it and scores it out of 100 with a fixed rubric: fun, feel, fairness, usability, robustness and honesty. Fix what it finds, run the playtest, loop. Below 70 is not ready; 85 and up is ready to share.
Play base/game.html as a new player. Score it with level-2-files/game-review/SKILL.md. Try hard to break the scoring. Be brutally honest, and list the top five problems.
7. Publish, share, and let a person approve it
about 20 min
Publish the page as a Claude artifact and declare what it may use. For people without Claude, a GitHub Actions workflow rebuilds the game, runs the playtest and publishes it on GitHub Pages. A challenge link carries the prompts and your score, so a friend plays the same game. Nothing goes public until you say so.
Add a GitHub Actions workflow: build the game, check the committed copy matches its source, run the playtest, and on main publish to GitHub Pages. Pull requests check only.
ONE HONEST PLAYTHROUGH
The best review came from the owner, not the reviewers.
Version 1 scored 84 with AI reviewers, with an office ladder of AI co-workers to beat. Then its owner played it, said the ladder did not make sense, and asked for a solo daily game. Drag to compare.
Version 1Today
Left: six scoring labels, a ladder and a settings card. Right: one daily game, three labels that fit a phone, settings behind a gear.
THREE LEVELS
Start in a browser. Add Claude. Then put it on the web.
Level 1. Play
Today's game, practice rounds, forgiving spelling, the top ten and the hosts' written lines. An estimated chart shows how you compare.
Any browser · one file
Level 2. Your account
Claude checks answers that are not on the list and the hosts write fresh lines, on your own Claude plan.
A Claude artifact
Level 3. On the web
A public copy anyone can open, published by GitHub Actions on every change, and a challenge link that opens it with your prompts and score.
GitHub Pages · no AI, no database
COMMON MISTAKES
Six mistakes, every one found in this build
Adding up the score as you go
A slow AI verdict arrived after a second check, and the total kept points the answer no longer had.
Fix: the total is always the sum of the answers.
Trusting spelling forgiveness
"Talking" counted as Tallinn, and "Recover" as a Gem.
Fix: block real dictionary words, with their -ing, -ed and re- forms.
Trusting the AI judge, or a shared code
A made-up challenge code claimed 500 points with five misses.
Fix: treat answers and codes as data, and check a score fits its answers.
Saying "saved" when it was not
With storage blocked, the game still said it saved your score.
Fix: report what really happened, every time.
Building features nobody asked for
The office ladder scored well with reviewers, then the owner played it and cut it.
Fix: let a person play early, and cut what does not earn its place.
Designing on a big screen
The first version was laid out for a desktop. A daily game gets played on a phone.
Fix: design at 390 pixels first, then check the desktop.
ONE NEXT STEP
Play today's game, then build your own.
Copy this into Claude Code or another coding agent, with your topic in place of mine. Written 17 November 2026; so far run only by its author.
Read https://github.com/bar181/practical-ai/tree/main/projects/rare-find
Use its North Star as the pattern. Build me a one-file
trivia game, phone first, about: [your topic].
Start with Level 1 and a playtest. Then review it with
level-2-files/game-review/SKILL.md in a fresh session.
Stop before anything is published.