Skip to content

River Run TypeSafe

A pygame-ce river shooter whose AI pilot splits the river into 20 lanes and asks Jev one parallel System One request per decision for lane, fire and speed.

Stars
0
Language
Python
License
MIT
Published by
Community
Author
ashaazami
Last verified
Oct 2026

About this project

A vertical-scrolling river shooter in Python with pygame-ce, plus an AI pilot that plays it using TypeSafe's System One model, Jev. Inspired by the 1982 Atari 2600 game River Raid by Carol Shaw (Activision). This is an independent project, not affiliated with or endorsed by Activision; all code, graphics and sounds are original. The TypeSafe pilot playing in real time (with sound): Fly up the river. Touching land, a ship, a helicopter, a jet or a standing bridge costs a life.

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

Highlights

  • Code measures each reachable lane for time to line up, open water ahead and what drifts into it; the model only picks.
  • The bottom strip shows lanes live: outlined is the plane's lane, filled the chosen one, the tick the exact target.
  • Real time runs about 8 requests per second at roughly 115 ms each, and --lockstep makes the game wait instead.
  • river_run/game.py holds the rules with no pygame import, exposing step and observation for automated players.

Watch out

Every decision is a hosted System One request, so the pilot needs an API key, network access to api.typesafe.ai and Python 3.10 or newer for typesafe-sdk 0.6; real-time play runs about eight requests per second, which is worth knowing before you leave it going. The README is careful that its scores and latencies come from the author's own runs and are not an official benchmark. Steering is deliberately tunable through top or blend, sum or max block scoring, a blend probability floor and a dead-end pixel count, so a good run is partly a function of those defaults rather than the model alone. Rendering and sound need pygame-ce, and --record additionally needs ffmpeg installed. It is an independent project inspired by River Raid, not affiliated with or endorsed by Activision, with original code, graphics and sounds. 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