Happy pi day! (not to be confused with pie day, which has more pastry but is less sweat).

I need your help: please refresh this page to throw more matches to the ground!
I'll use Comte de Buffon's result to estimate π.

matches on the floor

The underlying relation is:

                          2 * match_size
P(match_crosses_a_line) = --------------
                           π * line_gap

So π can be estimated as:

    2 * match_size
π ~ --------------
     P * line_gap

In the image above match_size/line_gap = 1/2, so this reduces to

    1
π ~ -
    P

You can check the source code here.

Update: a friend told me that it would be nice to know which of the matches you've just thrown into the floor. So I've added a circle around it :)