Skip to content

Jev Snake — iammusham

Experimental Snake environment where the engine owns the deterministic rules and Jev picks every direction from structured state, with a browser human baseline and a pygame client sharing one fixed server clock.

Stars
1
Language
Python
Published by
Community
Author
iammusham
Last verified
Oct 2026

iammusham/jev-snake

User repository on GitHub

View on GitHub

An experimental Snake environment where the game engine owns deterministic rules and TypeSafe AI's Jev makes the movement decision from structured state on every tick.

Forks
0
Last pushed
Updated Sep 2026

Repo stats from the GitHub API, cached Oct 2026.

This is one of several Jev listings for the same project. The canonical entry is Jev Snake — lalitsonawane.

About this project

An experimental Snake environment where the game engine owns deterministic rules and TypeSafe AI's Jev makes the movement decision from structured state on every tick. The project includes a browser-based human baseline and a pygame experiment client. Jev mode uses the same Python engine, replacing only the source of each requested direction.

Quoted from the project's README. Read the full README.

Highlights

  • The engine rejects a 180-degree reversal but never pathfinds around a wall, obstacle or its own body.
  • A failed API request falls back to an explicit keep-current-direction policy that is logged, not silently smoothed over.
  • Inference runs asynchronously between ticks at the same 1.5 moves per second on a 20x20 board in all three presets.
  • Every Jev tick logs full state, choice, probability distribution, latency, decision source and any error as JSON.

Watch out

The README calls it experimental, and the engine rejects only illegal 180-degree reversals, so avoiding walls, obstacles and self-collision is entirely Jev's problem. When a request fails or a decision deadline is missed, the snake holds its current direction for that tick and the completed decision is applied at the next available tick, which is how inference limits stay visible but also means a slow API shows up as worse play. Setup is a project-local virtual environment plus pip install -r requirements.txt, with TYPESAFE_API_KEY in a project-local .env or the server process environment; the browser never receives the key. Decoy fruits reshuffle whenever real fruit is eaten, so a run is reproducible by seed but not identical across the session in that respect. Engine tests run under pytest with no pygame or network access, and a Gymnasium wrapper is described as future work. Copy reviewed against the repository README on 2026-10-04, not from running it.

Questions about this entry

Short answers drawn from the linked project or page.

More Jev resources like this

Open 150M encoder that reproduces the typed noul, choice, and score interface in one forward pass, trainable on a free GPU and runnable locally for nothing.
Jev Demos & Experiments#community#jevbest#catalog-import
941GitHub stars
Library that adds schema-guaranteed typed outputs to existing autoregressive LLMs without changing weights, served through SGLang or a hosted API.
Jev Demos & Experiments#community#jevbest#catalog-import
55GitHub stars
Toolkit that makes a model behind an OpenAI-compatible endpoint or running in-process answer typed choice, score, and yes/no questions from next-token probabilities in Jev API shape.
Jev Demos & Experiments#community#jevbest#catalog-import
164GitHub stars
End-to-end toolkit that synthesizes decision data, trains and calibrates candidate scorers, evaluates fixed splits, and serves Jev-compatible inference for interactive web decisions.
Jev Demos & Experiments#community#jevbest#catalog-import
70GitHub stars
Self-hosted proxy that records typed decisions, distils them into small heads on a frozen encoder, and answers locally when confident.
Jev Demos & Experiments#community#jevbest#catalog-import
42GitHub stars
Open harness that renders allowed JSON answers on a diffusion canvas, denoises for a fixed step budget, then picks the top allowed tokens from final logits with no training.
Jev Demos & Experiments#community#jevbest#catalog-import

From the Jev guides

Original write-ups on what this entry is for.

A game tick is a state plus a legal action list. How Clash Royale, Minecraft, and the earlier Mario, Pokémon, StarCraft, and drone loops ask Jev one step at a time.
Jev Demos & Experiments#gaming#agents#control
Read article
Back to all resources

From the Jev community

Posts from builders shipping with Jev right now.

Follow @typesafeai