JevMade

Sign in
← Back to experiments

Playable demos & bots

typesafe-mario

Jev plays NES Super Mario Bros. by choosing controls from emulator state rather than pixels.

Source screenshot of typesafe-mario
SOURCE SCREENSHOTFull screenshot ↗

What it does

The game state is serialized each frame, allowing one decision per tick during real-time play.

How you can use it

A developer can adapt this approach to let an AI play a game. Instead of watching the screen, the app reads exact game details. It collects facts like the character position and nearby enemies. The app sends these details to an outside AI service called TypeSafe.

To borrow this idea, keep strict timing rules in the code. The app calculates urgent limits, like exactly when an enemy will hit. The AI reads these measurements and chooses which button to press. It must pick a single move quickly to keep the game running.

Keep this for later

Sign in to bookmark experiments, guides and videos, and keep notes only you can see.

Continue to sign in

We’ll bring you back to this listing.