# Compare

> Two options side by side; pick the better one.

```json
{
  "id": "p4",
  "prompt": "Both earn 7% a year. Who has more at age 65?",
  "explanation": "Ana ends with about $252,000 and Ben with about $227,000. Starting early beats putting in more.",
  "type": "compare",
  "options": [
    {
      "id": "a",
      "text": "**Ana** invests $2,400 a year from 25 to 35, then stops."
    },
    {
      "id": "b",
      "text": "**Ben** invests $2,400 a year from 35 to 65.",
      "feedback": "Ben puts in three times as much, but his money has much less time to compound."
    }
  ],
  "correct": "a"
}
```

A compare brick puts exactly two options next to each other. It tests judgement rather than recall.

## When to use it

* "Which is clearer, safer, stronger, faster?"
* Good as the hook: a quick gut call before any teaching.

## Fields

| Field     | Required | Description                                       |
| --------- | -------- | ------------------------------------------------- |
| `options` | yes      | Exactly 2 options, each with `text` or a `visual` |
| `correct` | yes      | The id of the better option                       |

## More examples

```json
{
  "id": "p1",
  "prompt": "Which problem statement is stronger?",
  "explanation": "It names who is affected, the pain, and the evidence, without assuming the fix.",
  "type": "compare",
  "options": [
    {
      "id": "a",
      "text": "Users want dark mode.",
      "feedback": "This names a solution, not a problem, and gives no evidence."
    },
    {
      "id": "b",
      "text": "Night-shift nurses say the bright screen strains their eyes. It comes up in 18% of support tickets."
    }
  ],
  "correct": "b"
}
```
