diff --git a/src/components/interactives/ComputingPi.tsx b/src/components/interactives/ComputingPi.tsx index a415d52..f251d2d 100644 --- a/src/components/interactives/ComputingPi.tsx +++ b/src/components/interactives/ComputingPi.tsx @@ -76,6 +76,7 @@ const ComputingPi: React.FC = () => { const [runs, setRuns] = useState([]); const [running, setRunning] = useState(false); const [selectedIdx, setSelectedIdx] = useState(null); + const [showTimes4, setShowTimes4] = useState(true); const started = runs.length > 0; const allStopped = started && runs.every((r) => r.stopped); @@ -144,17 +145,24 @@ const ComputingPi: React.FC = () => { /> -
+
+
{!started ? ( @@ -179,9 +187,10 @@ const ComputingPi: React.FC = () => { {/* Instruction + grid of runs */} {started ? ( <> -

- Click on any of the completed runs to view the full sequence. -

+
+

Click on any of the completed runs to view the full sequence.

+

Click on the average shown above to toggle between seeing the average and the average multiplied by 4.

+
with a subtle hover wash. Added showTimes4 state (default true). Label flips Average × 4 ↔ Average, the big number divides by 4 when showing plain avg, and the reference line flips between 'π ≈ 3.1416' and 'π/4 ≈ 0.7854'.", "doneDate": "2026-04-21" }, { @@ -457,6 +458,7 @@ "text": "Just below \"Click on any of the completed runs to view the full sequence.\", add the line \"Click on the average shown above to toggle between seeing the average and the average multiplied by 4).\"", "done": true, "refId": "T10", + "remark": "Stacked a second

under the existing instruction in a space-y-0.5 div so both lines share the centered text-muted-foreground styling.", "doneDate": "2026-04-21" } ]