Skip to content
matthewmanPublic

About

Jev plays Snake, with recorded games, replay, and experiments.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Jev plays Snake

An experiment in letting Jev play Snake. Watch recorded games, replay its decisions, and explore what we learned from different inputs.

Jev playing Snake: the full 73-second take, ending with 29 food

The demo

The latest three games scored 21, 23 and 29 food. The best take lasted 73 seconds before the snake collided with itself. Raw session JSON.

Jev reads structured board state, with collision and food facts calculated by the game engine, and chooses each turn. The replay player lets you inspect any move, see response times, and export a video.

What we learned

  • Identical inputs can produce different choices. Actions varied in two of five positions tested ten times each with the original input format.
  • How we presented the board mattered. Correct decisions on fixed boards rose from 15/48 with the original input to 46/48 with computed move facts.
  • Replies averaged 141.5 ms in the latest session. The p95 was 211.4 ms across 683 replies, measured at the client.

Read the findings and supporting evidence. The raw JSON files include earlier failures, input experiments and scripted controls.

Try it

To record a session with your own TypeSafe API key, check the setup requirements, then run:

git clone https://github.com/matthewman/jev-snake.git
cd jev-snake
npm run setup
# Open .env and add your TYPESAFE_API_KEY.
npm run record
npm start

Recording makes paid API calls and automatically saves and verifies your session. Then open localhost:4174 to watch it. The key stays in the local recording process.

To try an existing recording without a key:

npm run replay -- 2026-09-20-demo-250ms-v3
npm start

See the setup guide for settings and video export. The current player shows completed recordings; it does not stream the run live.

MIT license. Independent project, not an official TypeSafe product. Built with Codex.

About

Jev plays Snake, with recorded games, replay, and experiments.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages