AI product Open source

TypeSafe Mario

TypeSafe Mario is an experimental controller that uses TypeSafe's Jev model to play the original Super Mario Bros. from structured emulator state rather than screenshots. A parser converts emulator telemetry and RAM into object-centric JSON describing Mario's motion and jump trajectory, nearby enemies, terrain, response timing, recent control results, and episode progress; Jev then selects one of a small set of legal NES controller actions, after which the emulator advances and the loop repeats.

View repository Mentioned in 1 video ↓

Overview

The system also runs separate Choice, Noul, and Score judgments over each state: Choice selects the next controller macro, Noul estimates whether a forward jump is useful, and Score measures immediate danger for visualization. It provides a demo state inspector, a live dashboard with action probabilities, confidence, latency, jump probability, danger score, reward, and parsed state, plus JSONL decision logs containing model state, debug state, timing, and game outcomes. It requires Python 3.13 or newer, a TypeSafe API key, and a lawful local emulator and game setup; the repository does not include the Nintendo ROM or other copyrighted game data.

What TypeSafe Mario is used for

1 use taken from transcripts — each links to the moment in the video.

  • Uses Jev to choose game-controller inputs from structured emulator data rather than screenshots, with action probabilities, latency information, and decision logs.

Videos mentioning TypeSafe Mario

1 in the library.