Build Your Own Six-Card AI Picture Quiz (Offline)
Bring a tiny AI-style picture quiz straight to your phone without Wi‑Fi, servers, or installations. You’ll make a single HTML file with six emoji cards (cat, dog, apple, bus, fish, sun), two answer buttons per question, and immediate feedback—perfect for learning on the go.
1. What You’ll Have
- Exactly two buttons per question: one correct, one distractor.
- First picture is 🐈; clicking Dog keeps score at 0 with “Try again”; clicking Cat advances and awards a point.
2. Download the Ready-to-Run File
Save it locally using your browser’s download dialog. Do not rely on an attachment preview—preview windows often restrict JavaScript. On mobile, tap the file and choose “Open in Chrome/Safari” or equivalent; behavior varies by device, so treat this as a test you’ll run yourself.
3. Run It Offline (Step-by-Step)
- Open cards.html locally (double-click on desktop or use a local file picker on mobile).
- No network is needed after download. Reloading the saved file always resets to card one.
4. How the Quiz Works
- Correct answers advance to the next card; incorrect answers show “Try again” and keep score unchanged.
- After six cards, you hit Restart to begin again.
5. Customize with AI (One Prompt)
Ask an AI model this exact prompt to rewrite the content while preserving offline behavior:
Rewrite the quiz so the six embedded emoji pictures are [emoji1], [emoji2], [emoji3], [emoji4], [emoji5], [emoji6] in order, and the answer choices use the same two-button pattern per question. Keep the retry logic, restart flow, and single HTML file structure unchanged.
6. Acceptance Test on Your Phone
- Save cards.html to your device.
- Turn off Wi‑Fi/mobile data.
- Open the saved file and verify: first picture is 🐈; Dog shows “Try again”; Cat advances.
- Complete six cards, note score progression, then Restart.