Side Projects
Things I build for fun: simulations, games, and hardware. Most of the ones with a Play button run right in your browser.

Mahjong, played by animal brains
American mahjong where an animal's brain decides what to keep and what to throw. The brains are never trained on mahjong; I fit a simple linear readout on their neurons' responses to thousands of example hands.
- Rat Mahjong: the frozen motor-control network of the MIMIC-MJX virtual rodent (6,700 artificial neurons). It runs entirely in your browser.
- Fly Mahjong: a whole-brain Drosophila connectome (127,400 neurons, FlyWire). The connectome is simulated with PyTorch on a cloud server, so the fly may take about 30 seconds to wake up on your first move.
- Lock In: the hand helper behind both. Pick your tiles and it finds the best hands on the card (1985, 1999, and 2024–2026 cards).

Prey Swarm
A MuJoCo model of the predatory nanobot swarm from Michael Crichton's Prey. Hundreds of tiny agents, each following only local rules, hunt a person running for a lab door across a windy desert. Intercepting, flanking, and engulfing all emerge from those rules.
Then evolution takes over the rule weights. Starting from random weights, it catches the prey at least as often as the hand-tuned swarm (93.5% vs. 89.5%) and about 32% faster (9.1 s vs. 13.4 s). It does this by dropping flocking almost entirely: about half the swarm becomes guards waiting ahead on the route to the door, while the rest flank on a wide ring and aim where the prey is heading.
| Strategy | Caught | Mean catch time |
|---|---|---|
| Naive chase | 29.5% | 14.7 s |
| Hand-tuned | 89.5% | 13.4 s |
| Evolved | 93.5% | 9.1 s |
In Escape the Swarm, you're the prey, and the swarm learns from you. It starts out naive. After every run it builds a model of how you move, rehearses hunts against that model, and keeps any new tactics that beat its old ones, so the route that worked last time stops working. It can't cheat: bot count, speed, and wind stay fixed, and only how the bots coordinate changes. The fixed naive, hand-tuned, and evolved swarms are there too. It works with a keyboard or a touch joystick.
boardvis Play
Races four airplane boarding strategies (random, back-to-front, Steffen Modified, and the optimal Steffen method) on real aircraft layouts, with luggage and seat-interference delays.
Zork Cartographer Play
Play Zork I right in the browser and watch the world map itself as you go: a live 2D map, a 3D view of every room you've visited, and an autopilot that walks you to any room you click.
Handheld LiDAR Scanner
A pistol-grip 3D scanner: a sideways-mounted LiDAR sweeps a vertical circle while a servo pans it 180°, capturing a ~20,000-point map of the room on its own screen with each trigger pull.
misty-sidekick GitHub
A more Pythonic SDK for the Misty II robot, with helper functions, documentation, and a generator that keeps its methods in sync with the robot's API.