shipwithjev

Catalog / Games & real time

0019GitHub

JevMinesweeper

Jev plays Minesweeper, one square at a time.

The board goes to Jev as state, and Jev picks the next square. Enes Yilmaz’s demo is small enough to read in one sitting.

EnesYilmazcode/JevMinesweeperREADME ↗
Fly vs Jev: Minesweeper</h1>

<p align="center"><b>A simulated fruit fly brain against an AI model, at Minesweeper.</b><br>
The full wiring of an adult fly, all 166,700 neurons, sees only the revealed clues and picks every square. TypeSafe AI's Jev gets the same view.</p>

<p align="center">
  <img src="media/fly-vs-jev-ladder.gif" width="640" alt="A fly connectome and Jev racing up a mine ladder, five Minesweeper boards each, side by side">
</p>

## How it works

1. **Board.** Each game is beginner Minesweeper: 9×9, 10 mines, and a guaranteed-safe center opening. A seed fixes the minefield before either player moves.
2. **Eyes.** The left eye sees all 81 visible cells. The right eye sees the same board centered on one proposed click. Covered squares, revealed clues, board edges and the candidate marker become photoreceptor spike rates. Hidden mines never enter the input.
3. **Brain.** Each candidate runs through the MaleCNS connectome as a deterministic spiking network for 150 ms. The wiring of its 166,700 neurons and 6.2 million connections is never trained or changed. This is the same simulator as [Flytris](https://github.com/EnesYilmazcode/Flytris).
4. **Move.** A readout over 2,048 L1/L2 neurons scores the candidates and the fly clicks the best one. The readout is the only part that learned: it learned once from a constraint solver that sees only what the player sees, then played these games without it.
5. **Jev.** Jev gets the rules and a coordinate-labelled text board. It judges every covered square as safe or mined, clicks its safest one, and flags as many lowest-safety squares as the board has mines.

Both players get the same seeded boards, and neither is ever shown a hidden mine.

## System design

During a game the solver is never consulted: every fly click 

Also filed under Games & real time

  1. 0607

    2048Jev: Jev plays 2048

    Built a demonstration of Jev playing 2048. Note: It might not always win. :)

    @TheRealRajdeep · Games & real time

  2. 0603

    System 1 Speedcuber: a Rubik's cube agent

    A speedcubing agent built on Jev and Laya ModernBERT-421M, with real-time 3D state, temporal memory and calibrated move probabilities instead of a solver.

    @harsha_varma02 · Games & real time

  3. 0597

    Astra and Jev play Minecraft

    A video letting Astra plan and Jev act inside Minecraft, with an outcome the creator didn't expect.

    @MatinSenPai · Games & real time

  4. 0593

    Jev Kitchen

    Inspired by @heystefan_: name a dish or a cocktail, and its ingredients rise out of a pile of stickers. ⚡ Jev judges every search in half a second 🎨 ~1,000 illustrations by FLUX.1 [dev], run locally through ComfyUI 🧠 Claude Opus 5.5 built it all and redrew the illustrations

    @nelsonpklark · Games & real time