jevbooks

← All projects

typesafe-snake

sorrycc/typesafe-snake

Jev picks one legal Snake move per tick.

What it is

A TypeScript web app where TypeSafe's Jev, a System One decision model, auto-plays Snake in real time. Built for developers exploring typed, non-LLM decisions in a game loop.

How it uses Jev

Code computes legal moves and facts per move (food distance, flood-fill reachable cells, dead ends). Jev answers one `choice` question per tick; the controller asks at tick start and plays whatever arrived by tick end, defaulting to straight if late.

Primitives:choice

Technique worth stealing

Fixed-clock loop: ask the model at tick start, play the answer at tick end, fall back to a code-generated move on timeout.

Try it

cp .env.example .env, set TYPESAFE_API_KEY, then pnpm install and pnpm dev.

View on GitHub

judged by Jevjev-1.13.0

Evidence

Each line is one question put to Jev about the README. ≥ 0.60 reads as yes, ≤ 0.40 as no; in between Jev is not making a call.

  • Jev-centricyes0.96
  • Shows a System One patternyes0.94
  • Handles uncertaintyyes0.72
  • Measuredno0.05
  • Runnableyes0.94
  • Worth recommendingunclear0.51
  • Model replicano0.05
  • Problem scopescore on a 0–2 scale0.00
  • About Jevyes0.98

Signals by Jev jev-1.13.0, card written by DeepSeek V4.1 Flash from the README on 20 Sept 2026.