Coin Flip

Overview

The Coin Flip simulates a fair coin toss with a smooth 3D flip animation. It correctly displays the gold crown (👑 Heads) or silver eagle (🦅 Tails) face after landing. It supports flipping up to 10 coins at once, tracks statistics, detects winning streaks, and shows a visual history of results.

How to Use

Click the coin or “Flip!” button to toss. Use the − and + buttons to flip multiple coins at once (useful for probability experiments). The coin animates in 3D and lands on the correct face. After each flip, Heads/Tails counts and percentages update. A streak tracker appears after consecutive same-side results. The history row shows your last 20 flips as colored dots.

Background & Context

A fair coin should land heads or tails with equal 50% probability over many flips. However, research by Stanford mathematician Persi Diaconis found that a flipped coin is slightly more likely (about 51%) to land on the same side it started on, due to the physics of the flip. Real coins also have a slight weight bias from their design — the heavier side tends to land face-down slightly more often.