Back
gamesresearchOpen source

typesafe-snake

Watch Jev choose each legal move in a live Snake game.

What Jev decides

Which currently legal direction to take.

typesafe-snake gives Jev a bounded move Choice each game tick while code computes legal moves, food distance, and dead-end risk.

CHOICE
Jev role
Choose a direction for the next Snake tick.
Input
The current board and code-computed facts about legal directions.
Output
One Choice result for the next move.
Decision frequency
Once per game tick.
Fallback
The snake continues straight if Jev misses the tick deadline.
Author reported · Source reviewed

How it works

Input
The current board and code-computed facts about legal directions.
Jev
CHOICE
Output
One Choice result for the next move.

Overview

The game engine computes legal directions and facts such as food distance, reachable space, and dead ends. Jev selects one direction from those options once per tick. The server-side proxy holds the API key; the browser displays the board and decision feed. If the answer misses the tick deadline, the snake continues straight rather than waiting for the model.

Language
TypeScript
Author
sorrycc
Sources checked Sep 26, 2026

Sources

Related projects