Tiny Fly Rage

How the fly works

Back to the race
The ghost of the fruit fly

The brain

The ghost flies with a part of a real fruit fly brain. The data comes from FlyWire, a map of every neuron and synapse in the brain of one adult female Drosophila melanogaster. Release v783 has 139,255 neurons and 54,492,922 synapses.

The game uses 2,198 of those neurons and the 31,272 connections between them:

What is real and what is not

These parts come directly from FlyWire and do not change:

These parts are a model, not biology:

How the ghost learns

A coach flies with the fly during practice. The coach sees only what the fly sees, and it says when a flap is due. The fly records the activity of its 557 descending neurons and fits new weights to match the coach.

When you open the game, the ghost starts as a hatchling with very little practice. It practises in the background while the page is open, about once every three seconds. After every six practice flights, it tries a new set of weights. The ghost keeps the new weights only if they beat the old ones by at least one pipe on the same fresh courses. Your browser saves its progress.

A fully trained ghost flies a median of 303 pipes on 300-pipe courses. A small amount of random noise in each match lets you win sometimes.

Credits and licence

Brain data: the FlyWire Consortium, release v783.

FlyWire publishes its data under the CC BY-NC 4.0 licence. This game is free and non-commercial. The game changes the data as this page describes: it selects a subcircuit, removes weak and modulatory connections, and scales the inputs to each neuron.

Music: Paul Nevin.