Fruit Fly Chess

Hormone Maze new
Fruit fly Innate
Engine + instinct
Idle
You
White
—
Loading the brain…

Moves

    Brain activity

    Idle

    139,255 real neurons at their real positions. Each one lights up when it fires.

      Moves it smelled

      Each candidate move becomes an odor. The fly plays the one its mushroom body finds most attractive.

      Move Odor features Odor Valence KCs

      Innate preferences

      How it works

      What is real

      The wiring diagram: all 139,255 neurons and 54.5 million synapses of an adult fruit-fly brain, mapped by the FlyWire consortium. Every dot on the brain map is a real neuron at its real position.

      What is simulated

      The activity. A leaky integrate-and-fire model (Shiu et al., Nature 2024) runs on that real wiring, right in your browser. It reproduces known biology, such as sugar triggering feeding. Your own device computes every spike, so a slower phone thinks longer.

      Innate Fly

      A shallow chess engine lists candidate moves and turns each into an odor: better moves smell stronger, and the piece, captures and checks add their own smells. The mushroom body gives each odor a value, and the fly plays the most attractive one. Between moves of similar value, it follows its own taste.

      Learning Fly

      The engine only suggests 8 moves, all smelling equally strong. The fly senses plain facts: which piece moves, captures, checks, whether it threatens a piece or escapes an attack. After each move it sees what happened, and dopamine reports the surprise: reward (PAM) when it went better than usual, punishment (PPL1) when worse. Dopamine reshapes the Kenyon cell → output synapses where the connectome says it should. What your fly learns is saved in this browser only.

      Pure Fly

      No engine at all. Every legal move smells equally strong and carries only what a fly could sense: the piece, what it captures, check, and whether it lands under attack. It starts out almost random and improves only by learning.

      Pondering

      While you think, the fly pre-computes its replies to your likely moves, so it can answer instantly. "LIVE" means activity being computed now; "REPLAY" means recorded activity.

      Hormone Maze

      A second game with the same fly: Hormone Maze. You never move the fly. You treat fruits with plant hormones, ethylene, gibberellin and abscisic acid, which change how strongly each fruit smells, and the fly walks towards the strongest smell. Lead it through 11 mazes to the golden fruit. The brain panel runs the same connectome simulation as the chess game: the smell at the fly's square drives its real odor receptor neurons, and you watch the activity spread to the mushroom body.

      Credits

      The fly's brain comes from the FlyWire connectome. Thanks to the Princeton FlyWire team and the members of the FlyWire Consortium who proofread and annotated it, and to everyone behind the data and models below. This site is an independent project and is not affiliated with or endorsed by FlyWire, Princeton University or the authors.