gatefallPlay a run

A marble game that runs a real A/B test on Flagsmith.

Flagsmith picks which end screen each player sees. We count who plays again, then ship the winner.

Why gatefall

How it works

  1. The flag

    One flag, end_screen, holds two end screens: a plain scorecard, or a replay of the marble you almost saved.

    In Flagsmith
    getExperimentFlag("end_screen")
    // → "scorecard"  control
    // → "near_miss"  variant

    Read once, at the first end screen. That read records the exposure.

  2. The metric

    Pressing Play again sends a replay event. That is what we measure.

    In Flagsmith
    trackEvent("replay")

    Primary metric: replay, counted once per player.

  3. The split

    Flagsmith sends half of players to each screen and counts replays in each group.

    In Flagsmith
    GET experiments/{id}/results/
    // scorecard 50% · near_miss 50%

    Replay rate per group, with the chance that the variant wins.

  4. The ship

    When one screen clearly wins, one call rolls it out to everyone.

    In Flagsmith
    POST experiments/{id}/complete/
    {"rollout_decision":"variant"}

    Everyone then gets "near_miss" from the same flag.

Two end screens. Each player sees one.

Score 280

28 sorted · 4 lost · best streak 11

Scorecard, the control

Score 280

28 sorted · 4 lost · best streak 11

Late by 0.14 s at gate B

Near miss, the variant: it replays the marble you almost saved

Example run. The bet: seeing how close you came makes you play again.

Live results

–

players in the test

–

played again after the scorecard

–

played again after the near miss

From Flagsmith’s results API. Open the lab

What Flagsmith controls

On this siteIn FlagsmithStatus
Which end screen a player seesend_screen flagLive
Replay, run and share counts4 eventsLive
Shipping the winnercomplete APILive
Show or hide the demodemo_mode flagOn
Top-of-page noticesite_banner flagOff
Demo marble speeddemo_speed flagOn: 1×

The machine room

Every marble here is a real player.


and beat the

Your name is stored as a Flagsmith trait. No account, no email.