How it works
The opponent is the MaleCNS connectome: 166,700 neurons from a male fruit fly's brain and nerve cord, plus the 25.6 million connections between them. Nothing was added to that wiring. Each neuron got three trainable numbers (how strongly it listens to its inputs, a resting offset, and how quickly it changes), and those were trained on tic-tac-toe positions labeled by a perfect solver.
For each move, the board is pushed into the fly's sensory neurons through a fixed random mapping. Activity spreads through the graph for four update steps, and 2,048 neurons are read out as scores for the nine squares. So it doesn't look at the board, and it isn't a living fly. It's a simple rate model that happens to run on real wiring.
There are two kinds of runs. Research runs train on 80% of positions and get scored on positions they never saw; they pick a best move about 92% of the time, up from 63% before training. The fly you're playing was trained on every position and chosen by exact game results. It never loses to a perfect player, whether it goes first or second.
Does the real wiring matter?
I shuffled who connects to whom, keeping each neuron's number of inputs and outputs, and trained that graph the same way. With two training recipes and three runs each, the real wiring averaged 92.3% and 92.0% on unseen positions, and the shuffled one 84.7% and 85.2%. The real wiring won every run.
Why does it open in different places?
Every opening is a draw with perfect play, so the network never learned much preference beyond the center. The page samples the first move from its scores, softened a bit: about 42% center, 8 to 13% per corner, 3 to 5% per edge. Later, if two squares score within 15% of each other, either one can be picked. Checked over every possible game, neither change lets anyone beat it.
Where does the signal go?
Not very deep. Outside the sensory neurons, the strongest response is in antennal lobe projection neurons, one synapse in. Most of the neurons the move is read from are early visual relay cells (L1, L2 and L3). That's because they sit right next to the input, not because the fly sees anything. The mushroom body and central complex hardly move at all.
| Group | Neurons | Response | Read out |
| Sensory (input) | 17,937 | 0.564 | 0 |
| Antennal lobe projection | 686 | 0.0871 | 30 |
| Nerve cord | 15,045 | 0.0245 | 187 |
| Optic lobe | 99,169 | 0.0147 | 1,755 |
| Descending | 1,316 | 0.0115 | 1 |
| Kenyon cells | 4,064 | 0.0112 | 0 |
| Mushroom body output | 97 | 0.0007 | 0 |
| Central complex | 2,950 | 0.0001 | 0 |
Response is how far a neuron's rate moves from its no-input value after the fourth step, averaged over every board and every neuron in the group.