r/regolo_ai • u/AutoModerator • Aug 06 '26
We let an LLM play PokéRogue blind — no training data, no fine-tuning. Here's what actually broke (and why it's a useful lesson for production LLM systems)

TL;DR: We forked PokéRogue (a browser roguelike launched in 2024, not in any training corpus) and wired Regolo to control every player decision via API.
One import line + one 1,300-line TypeScript module. The model failed badly on the first prompt, then played correctly after one context engineering rewrite. The lesson generalizes.
Why PokéRogue and not the original Game Boy games?
Because every LLM has been trained on Bulbapedia, Smogon, and ten years of competitive battle logs. Testing on Gen 1 is testing memorization, not reasoning. PokéRogue launched in 2024, has no dedicated dataset, and runs on procedurally generated rules that change every run.
What we actually built:
The game is phase-based (each game state is a Phase class): we patched 10 prototype methods so the LLM intercepts control at the right moments — battle command, item selection, move learning, starter selection — without touching rendering or game logic. No game engine rewrite.
What broke first:
The initial prompt: "decide the best action." The model played confidently and catastrophically — immune moves, chains of pointless switches, catching Pokémon it immediately couldn't use.
We also hit a classic chained-action problem: the model chose switch in one call, then saw a new Pokémon on field and made a fresh decision — sometimes switching again immediately. Fix: when the model chooses switch, it must also specify the move the incoming Pokémon will use next turn. Two decisions, one API call, one atomic intent.
The context rewrite:
We pre-computed type multipliers and injected the result per move: "Ember — Fire Special, power 40, acc 100%, STAB | vs enemy: 2x super effective" instead of just "Ember".
We injected stat stages, ability interactions, speed deltas, and explained the HP economy constraint (full heal every 10 waves — HP is a resource that spans up to 9 future battles).
After the rewrite, first clean run: "Ember is 2x super effective STAB vs the Grass-type enemy, and my Charmander outspeeds — I can KO before taking damage."
Describing a game state in natural language is lossy, serializing structured state with annotations is not. The model's reasoning is bounded by what it can see.
Pre-computing and injecting the right numbers isn't a crutch — it's the correct architecture.
Full Guides + Video demo + Codes: https://regolo.ai/llm-plays-pokemon-pokerogue-regolo-ai/
Happy to discuss prompt architecture, the phase-patching approach, or the HP economy framing if anyone's interested.
