Jason Lamb .ME Some stuff I think is cool and interesting, you might too!

November 27, 2026

Coin Flip: A Small Browser Game With Shared Results

Filed under Fun, Technology

Coin Flip turns a quick decision into a small interactive browser experience. A flip starts when the page loads; visitors can flip again by tapping the coin, pressing the button, or using the keyboard. Heads appears as a smiling face and tails as a cross.

The browser chooses each outcome with a cryptographic random bit. Every flip is independent, so a run of heads does not make tails more likely next time. The animation, confetti, and result display make the choice visible, while the page still gives an immediate result when reduced motion is preferred.

A shared history panel shows lifetime totals, percentages, and the 50 most recent outcomes. The server records results separately from the public display. Its private log includes visitor network and browser metadata, which the public history endpoint does not return. If the history service is unavailable, the coin can still flip and reports that the result was not saved.

The project is deliberately small, but its details matter: keyboard controls, focus handling, rapid-click protection, mobile layout, and a clear boundary between public statistics and private log data.

Fresh screenshots

These current desktop and mobile captures show the live interface after the initial toss settles.

Coin Flip desktop interface showing the smiling heads side of the coin
Coin Flip mobile interface with the animated coin and flip control

Open the hosted project · Explore the project on GitHub

Update history

These notes record article updates associated with repository changes. The original publication date is retained.

  • — Added fresh desktop and mobile gameplay screenshots. GitHub source
  • — Added a project overview covering independent flips, accessible controls, reduced motion, and shared history. GitHub source