Guides / Design tips

Train your design eye: a 10-second spot-the-mistake game Claude Code built from one plain-language prompt

Alignment, spacing, colour, icons, hierarchy: 10 seconds a round to spot what's off. Claude Code wrote it as one HTML file from a plain prompt. Play it here.

Watch the reel on InstagramComment #眼力 to get this guide

Watched plenty of design tutorials but still can't see what's "off"? Your eye is like a muscle: it needs training. We didn't go looking for an app. We wrote a plain-language prompt and gave it to Claude Code, asking for a "Design Eye" mini game: 10 seconds a round to click the line that's out of alignment, the spacing that's too tight, the colours fighting for attention. One more sentence and it added an adventure map. Every screen below is from the game Claude Code made, and you can play it from the link.

01Play a round first

The game is at the link below. It works on a phone or a computer, with no sign-up and nothing to install. Start with the Mixed challenge (綜合挑戰), where all five round types are mixed, and see if you get the top title, 銳利眼 (Sharp Eye). The game's interface is in Traditional Chinese.

The Design Eye start screen: an eye icon, the big title, five round-type tags and a start button
The first version's start screen: big title, one line of explanation, the five round types and a start button.
  1. Open the link, pick an area on the adventure map and press 開始挑戰 (start).
  2. Each round shows the question and a 10-second timer bar; running out of time counts as wrong.
  3. For "find what's off" rounds, click the problem right on the design; for "pick the better one" rounds, click A, B or C, or press 1, 2 or 3 on the keyboard.
  4. After each answer you get one line of explanation; press 下一題 (next). After 10 rounds you get a result card.

02Five round types, five kinds of eye

Quick test: one line on this poster is out of alignment. Can you see which?

Alignment round: four big lines MAKE IT SIMPLE FIRST on a blue poster, one of them slightly off
Alignment round. Answer: the SIMPLE line is 9 px too far left; the other three sit on one line.
  1. Alignment: one element in a row is a few px off. Find the invisible line first (left edge, top edge or baseline), then see who isn't on it.
  2. Letter spacing: the same headline with three spacings; pick the most comfortable. Squint: good spacing reads as one block, not glued together and not scattered letter by letter.
  3. Colour: three palettes on the same poster; pick the most balanced. Look for the lead: a large background colour, a steady text colour, and a small touch of a bright accent.
  4. Icons: one outsider in a set of line icons. Compare three things: stroke weight, how round the corners are, and whether it's filled.
  5. Hierarchy: the same content in three size hierarchies. Ask yourself: is the first thing you see the most important line?

Each of those tips was written into the game by Claude Code itself; it pops up before you enter each area.

Colour round answered right: C is framed in green, the feedback card shows the points and why
Colour round, right: +15 (10 plus 5 for under 3 s), and one line on why A is too faint and B's colours all fight.
Spacing round: three versions of the same COFFEE CLUB poster, A normal, B tight, C loose
Spacing round: A is right, B is glued together, C falls apart. All of these are made-up demo posters.
Icon round answered wrong: the member icon was clicked, the correct bell icon is framed in green
Wrong answers teach too: it marks the right one and explains only the bell is filled, so it jumps out.
Hierarchy round answered right: A has the biggest boldest title, B is all one size, C has a label bigger than the title
Hierarchy round: in A you know where to look first; B is all one size, and in C the small label outshouts the title.

03Scoring and titles: faster and right scores more

  1. +10 for a right answer.
  2. +5 more if you answer right within 3 seconds.
  3. Streak bonus: from the 2nd in a row, +2, 4, 6, 8, up to +10 a round. A wrong answer or a timeout resets the streak.
  4. Ten right answers, all fast, gives the maximum of 220.
  5. Result titles: 90+ is 銳利眼 (Sharp Eye), 70+ is 好眼力 (Good Eye), anything else is 練習中 (In Training).
Result card: title Sharp Eye, 220 points, 10/10 right, 0.9 s average reaction, best streak 10
The round we recorded: Sharp Eye, 220 points, 10 out of 10, 0.9 s on average.

04Make your own: describe the game to Claude Code in plain words

  1. Make a new, empty folder.
  2. Open Claude Code in that folder (first time? See the official quickstart below).
  3. Paste the prompt below. The [ ] parts are yours to change; it works as is too.
  4. When it's done, open index.html from the folder in Chrome or Safari and play.
Prompt 1: build the game (replace the [ ] parts)
Make a small web game called "[Design Eye]".

Concept: training your eye beats watching more tutorials. Each round shows a small design ([a poster, a business card, an app screen, a headline layout]) with one hidden design mistake, or a few versions to pick the better one from. The player has [10] seconds to click the answer.

Round types ([10] rounds in total, mixed):
1. Find the one that's out of alignment (one element in a row is off by a few px)
2. Which letter spacing feels right (the same headline, three spacings)
3. Which colour set is more balanced (three palettes on the same poster)
4. Find the icon from a different system (a set of line icons with one filled or differently rounded icon mixed in)
5. Which heading hierarchy is right (the same content, three size hierarchies)

How it plays:
- Start screen: big title "[Design Eye]", one line of explanation, a start button
- At the top of each round: the question, round x/10, score, streak, a 10-second timer bar
- Right answer: green feedback "Good eye!" plus one line on why; wrong or out of time: mark where the right answer was, plus one line of explanation
- Scoring: 10 points for a right answer, 5 more if it's within 3 seconds, a bonus for streaks
- After 10 rounds a result card: a title (90+ "Sharp Eye", 70+ "Good Eye", otherwise "In Training"), score, how many right, average reaction time, a play-again button

Style: [fresh, pastel game feel. A soft mint-green to butter-yellow gradient background, cream rounded cards, soft shadows, rounded bold type]. The small design in each round should look like a real poster (bold colour blocks, bold headlines), drawn with HTML / CSS / SVG, no images.

The interface is all in [English]. It should look good from a phone held upright to a desktop.

Tech: a single index.html (HTML + CSS + JS), no backend, opens and plays straight in the browser.

We gave our prompt (in Chinese) to a fresh Claude Code session, plus only where to save the file and a request to play all 10 rounds once in a browser to check. Its first version is what you see above: 10 rounds, a timer bar, score, streak, one line of explanation per round, and every poster in the rounds drawn in code, with no images at all.

05One more sentence: an area for each challenge

Once the first version worked, we added one sentence in the same Claude Code conversation and it edited the file it had written: the home page became an adventure map with one area per round type, ending with the Mixed challenge.

Prompt 2: add the adventure map (same conversation)
Give each kind of challenge its own level area: make an "adventure map" home page with six areas, [Alignment, Spacing, Colour, Icons, Hierarchy, Mixed challenge], each showing its own progress and best score; clicking one plays only that area's questions (Mixed challenge = the original 10 mixed rounds). Then polish the whole layout a bit more, keeping the same style.
Adventure map: five areas along a dotted path, each with stars, best score and a progress bar
The adventure map: each area shows stars, best score and how many right; the header counts total stars and areas tried.
The Spacing area's intro card: area 2, 10 rounds, a tip and a start button over the blurred map
Opening an area shows an intro card with one tip for that area.

Stars follow your best score: 1 star from 40, 2 from 70, 3 from 90, 18 in total across six areas. Each area keeps its own best, and when you beat it the result card tells you by how much.

The adventure map on a phone held upright: area cards zig-zag left and right
Works on a phone too (390 px wide). We never asked separately; the "phone to desktop" line in prompt 1 did it.

06Swap in what you want to train

The five round types are just a start. To train composition, photos or font pairing, describe the new round type the same way and have it edit the same file.

Add a new round type (replace the [ ] parts)
This is the "Design Eye" game you made for me earlier (index.html). Please add a new round type:
- Question: [e.g. which photo has the steadier composition]
- Give [three] versions each round: [e.g. the same illustration with the subject on a third line, dead centre, and pressed against the edge], drawn with HTML / CSS / SVG, no images
- The explanation after an answer says [why this one is better, in one line]
- Add an area to the adventure map called "[Composition]", and mix this type into the Mixed challenge too
Keep everything else (how it plays, scoring, style) the same, still one index.html. When you're done, play it through once yourself and tell me what you changed.

07Good to know

  1. The posters, shop names, people's names and copy in the game (COFFEE CLUB, oat latte, BIG SALE and so on) are made-up demo content written by Claude Code, not real brands.
  2. Claude Code builds it a little differently every time: the layout, colours and how rounds are drawn may differ from ours, so go by the file you get.
  3. The game loads its fonts from Google Fonts online. Without a connection it still plays, just in your computer's built-in fonts.
  4. Scores and progress stay in your browser; nothing is uploaded and there's no leaderboard. A leaderboard would need a backend.
  5. The rounds test common layout principles, not the only right answer. In real design work, the content and the goal decide.

Sources

Related guides