Show HN: Jevman – AI decision models play Pac-Man
TL;DR Highlight
Open-source Pac-Man benchmark ranks decision models over 100 real-time games each
Who Should Read
Backend developer weighing small decision models instead of chat LLMs for latency-sensitive routing or control logic
Core Mechanics
- Each model plays 100 games
- Models face the classic scripted ghosts until all three lives are lost.
- Games are capped at 5 minutes, but the longest lasted only 2 minutes 24 seconds.
- Models answer with odds per direction
- At each junction the game sends the maze, pellets and ghosts as JSON.
- The model returns a probability per direction and Pac-Man picks from them.
- Answers over 2 seconds fall back to a rule
- A simple backup rule replaces late answers and counts them as backup moves.
- Claude Haiku 5.5, run by the authors, was left off because two thirds of its answers came late.
- Ranking uses mean score with margin of error
- It uses the mean score with a 95% margin (±2 standard errors).
- Models within each other's margin are tied, and the high score is the best single game.
- Text-writing models are not ranked
- Only decision models that answer with odds in one pass are ranked.
- Chat LLMs and no-model rules show their score marked Chat or Base for reference.
- You can submit your own model via an HTTP endpoint
- Hosted models, fine-tunes and laptop models all work, and the repo has a 34-line example endpoint.
- One command runs the games under the rules, and a PR lets CI replay every game to verify the score.
Community Reactions
- Opinion that the model should run every tick, not just at junctions
- The commenter notes Pac-Man can change direction at any point.
- Author update that community contributions doubled the tested models
- A new model took #1 and over 1000 games have been played against decision-model ghosts.
- Question about local CPU models and a commenter's experience training small models
- One commenter trained small models to play Doom and plans to train one for this benchmark.
- Opinion that a regular LLM reference would help
- Others said mobile controls were hard and joked about paying 2 cents per game.
How to Apply
- Log latency against a 2-second limit on one decision point
- Pick one place in your service where an LLM makes a decision and record response time today.
- Check what share of calls exceeds 2 seconds.
- Add a rule-based fallback to the LLM call
- Set a timeout and let a simple rule decide when it is exceeded.
- Track how often the fallback fires.
- Try a per-option probability output format
- Make a classification or routing prompt return only JSON probabilities per option, with no explanation.
- Compare latency and accuracy against your current text answers.
- Compare scores by mean and margin of error
- When comparing models A and B, run at least 100 trials and compute the mean and ±2 standard errors.
- Treat overlapping ranges as tied.
Try It
# Paste into Claude/ChatGPT — simplified version of the article's method (probabilities-only decision prompt)
You are a decision model. Output JSON only, with no explanation.
Situation: {{situation description}}
Options: {{option list, e.g. up, down, left, right}}
Give the probability that each option is best, summing to 1, in the format {"up":0.0,"down":0.0,"left":0.0,"right":0.0}.
Next step: run the same situation 20 times and check how much the probabilities vary and whether responses arrive within 2 seconds.Terminology
Related Papers
Gemini 4 Neon is the new #1 on the Models Engineering Index
Gemini 4 Neon ranks first on the Models Engineering Index with 68.0, combining multiple benchmarks.
LLMs can read and write executables byte by byte from a hex dump
Given only a hex dump and no tools, an LLM analyzed, patched and wrote working executables.
Claude was trained on protein sequences at scale
Next-amino-acid tests on obscure proteins show only the latest Claude models predict them
Remembered as Brief: Stored Preferences SilentlyRemove Decision-Critical Information
A stored 'keep it short' preference silently drops warnings; listing must-know points first restores content.
All AI-generated code should be Open Source
A blog argues AI-generated code should be open source; most HN commenters disagreed.
What thousands of conversations look like inside a language model
Mapping Qwen3-1.7B states showed Chinese sitting apart from English, while German and Croatian overlapped it.
AI, activity, and outcomes in software engineering
AI sped up writing code, but shipping speed did not rise as much, says a talk
LLMs Play Zachtronics' TIS-100
16 LLMs played TIS-100 and set 133 new Pareto frontier points across 18 puzzles