🪰 Chess vs Fly

You are playing against the mushroom body of a real fruit fly brain. Every synapse comes from the complete male Drosophila connectome.

Loading the fly brain…

How this works

In October 2025 Google Research, HHMI Janelia's FlyEM team and the University of Cambridge released the first complete synapse-level wiring diagram of a male fruit fly's central nervous system: about 166,000 neurons and 125 million synapses, reconstructed from electron microscopy with Google's flood-filling networks. This site takes one circuit out of that map, the mushroom body, the fly's learning and memory centre, and teaches it chess the way a fly learns everything else.

  1. See the board. Each of the 773 board features (a piece on a square, a castling right, an en-passant square) is presented as activity in one projection neuron that innervates the mushroom body calyx.
  2. Think like a fly. The connectome's projection-neuron-to-Kenyon-cell synapses turn that into a sparse code across 4,064 Kenyon cells, kept sparse by the GABAergic APL neuron's feedback inhibition and shaped by the million KC-to-KC synapses, exactly as wired in the fly.
  3. Learn. Only the Kenyon-cell-to-MBON synapses are plastic, as in real flies, where dopamine strengthens or weakens them. We trained those synapses (and nothing else) on 600,000 Stockfish-evaluated positions from noisy self-play, with the engine's evaluation standing in for dopamine.
  4. Decide. Glutamatergic MBONs drive avoidance and cholinergic/GABAergic MBONs drive approach (Aso et al. 2014). The fly plays the move that leads to the position it likes most; at higher strengths it imagines your replies too.

No chess knowledge is programmed anywhere: the rules of chess are provided by the board (chess.js), and the lookahead is bookkeeping over the fly's own evaluations. Source code, training scripts and the research notes are in the GitHub repository. Connectome data: male-cns.janelia.org (CC-BY).