The harness reads the ROM/RAM, builds a collision grid, computes reachable paths with A-star, constructs a region graph, calculates distance to the current objective, determines whether an exit leads toward or away from the objective, identifies Pokémon Centers and Marts, detects NPCs and items, and then turns all of that into natural-language choices for Jev.
Jev is given a list of "choices", already annotated information that tells Jev whether the choice should be taken or not.
For example, Jev might receive options like:
* Enter ROCK_TUNNEL_1F — Leads toward the objective (2 areas away)
* Go west to ROUTE_9 — Leads away from the objective (5 areas away)
* Talk to NPC X — Mentioned in the current objective
* Enter POKECENTER — toward nearest Pokémon Center
Those "toward the objective" judgments are not Jev figuring out the map. The harness computes shortest path distances through its region graph and literally annotates the choices with that answer.Once Jev says "Enter X" the harness already has the exact A* path and walks it automatically, including replanning around moving NPCs and retrying when blocked.
Puzzle solving is also done by the harness - it gives Jev a set of choices, annotated with sentences like "brings the boulder closer to the floor switch", "after this push no sequence of pushes can bring this boulder onto a floor switch anymore".
Story progression contains hardcoded instructions for Jev, e.g.: 'Go south from Cerulean through Route 5, the Underground Path and Route 6 to Vermilion City; board the S.S. Anne at the dock and get HM01 (Cut) from the captain.'
And even with all of those hardcoded decisions, it still plays terrible. I just saw it get stuck in a loop - but of course harness annotates repeated actions, so eventually Jev is steered to escape the loop.
You should be ashamed of yourself.