---
name: build-a-claude-artifact-quiz-for-students-with-leaderboard
description: "A Claude artifact quiz for students: one question at a time with instant feedback and an explanation, a missed-question review, and a shared class leaderboard."
---

# Build a Claude Artifact Quiz for Students with Leaderboard

Source: https://prompts-gpt.com/prompts/build-a-claude-artifact-quiz-for-students-with-leaderboard

A Claude artifact quiz for students: one question at a time with instant feedback and an explanation, a missed-question review, and a shared class leaderboard.

## Prompt

```
Act as a front-end developer and middle-school science teacher. Build a single-file review quiz called Water Cycle Review for students aged 11-14, ready to publish as a Claude artifact. Start screen: title, topic, question count, a name field (first name or nickname, 1-20 characters, trimmed, inline error) and a Shuffle questions toggle. Write 10 accurate questions mixing four-option multiple choice and true/false. Rules: 1) Show one question at a time with a progress bar. Picking an answer locks it, marks it right or wrong with colour plus a ✓ or ✗ and text, shows the correct answer and a one-sentence explanation, then Next. 2) End screen: score, percent, time taken, missed questions with right answers, and Try again. 3) Leaderboard: top 10 by score, then fastest time, highlighting the student's row. Save scores with Claude's persistent artifact storage in shared mode (window.storage) inside try/catch so the whole class shares one board; otherwise keep it in memory, seeded with 4 fictional names. 4) A collapsed Teacher: edit questions panel with a textarea using lines like question | A | B | C | D | right letter | explanation (true/false lines use two options), plus an Apply button that validates and lists errors inline. 5) System fonts, calm light theme with dark mode and reduced-motion support, visible focus, labelled controls, keys 1-4 to answer, fits 360-1280px. No forms, localStorage, cookies, alerts or external files. Output format: one complete HTML file in a single code block, then 3 short ideas to extend it.
```

## Usage Notes

Paste into Claude and open it as an artifact; preview it, then publish or share the link with students. Also works in ChatGPT canvas, Gemini Canvas or saved as an .html file in any browser. The shared board needs Claude artifact storage (paid plan); elsewhere it resets on reload.
