Shouldn't it be running at every tick of the game rather than just the junctions? Pac-Man should be able to change direction at any point.
Shouldn't it be running at every tick of the game rather than just the junctions? Pac-Man should be able to change direction at any point.
Ideally yes but that would not work with the model latency. But it is already partly covered when a ghost enters its corridor it is asked again. Here's how the decisions work in detail, also below a copy https://github.com/opper-ai/jevman-benchmark/blob/main/READM...
How decisions work
When a character commits to a corridor its next junction is known, so the game asks jev about it straight away (one System One request per frame, one choice question per character, options = legal directions described with computed facts: distances to pellets, power pellets, fruit and ghosts, whether the nearest ghost is coming closer, and whether a ghost can reach the end of the corridor before Pac-Man). Up to three requests are in flight at once. If the character reaches the junction before the answer, it waits there (its panel card says "thinking…"). After 2 s, or on an error, it uses a greedy rule.
Pac-Man can also get a second question mid-corridor: when a dangerous ghost is in the corridor ahead, or can reach the junction at its end before he does, jev is asked whether to keep going or turn back right now (pacman_escape). Pac-Man keeps moving while it is open, and each situation is asked once.
Ideally yes but that would not work with the model latency. But it is already partly covered when a ghost enters pacmans corridor he is asked again. Here's how the decisions work in detail https://github.com/opper-ai/jevman-benchmark/blob/main/READM...
It may not matter if the ghosts' next move is predictable over that maximum distance.
That requires much more thinking (because of calculation) though doesn't it? Which decision models are not optimized for.
Speculating, but it seems like needing to be able to change direction at any moment would be more calculating, not less.