Minigames Benchmark Code

Minigames Benchmark

Seventy minigames for computer‑use agents to play

Minigames
70
Paces
4
Categories
21
Time per game
180 s

News

Figure 1. All seventy games shown in a mosaic. Click on one for details!

Overview

A computer-use agent operates and controls your computer from the screen, powered by a large machine learning model. These agents are usually tested on office software or websites, which show everything the agent must know and wait for it to respond. So those benchmarks just gauge how well a model can think of what to do next from the current state. Minigames Benchmark is a different kind of benchmark. It has seventy games that many human players would be able to complete in a short amount of time, while today's state-of-the-art agents struggle. I made the benchmark to highlight that difference. The games test much more than deep thinking: timing, memory, navigation, physics, reacting, and exploring are all dimensions of intelligence that are much overlooked in machine learning models and agent architectures today.

Frequently Asked Questions

Why did you make this benchmark?

I conjecture that there does not exist any agent that can beat all seventy games at full speed (without hardcoding solutions). By agent I mean the harness, model, and hardware together. Meanwhile, a human is able to beat all seventy with relative ease. What I am trying to push with this benchmark is that there is still significant room for progress in artificial intelligence.

How were the games designed?

The games were designed to be simple, and many take inspiration from existing popular games. There are no advanced or unintuitive mechanics, and each game only needs a few controls. Most games can be beaten by a human without even reading the directions. Coding agents helped with implementation details, but I created the ideas, levels, and gameplay.

Why are the games written in Rust?

1. The games run at a steady speed, with no pauses for garbage collection.

2. The games need to build for several targets: native, WebAssembly, and a Python module.

3. Fully compiled code is fast, which helps when running many games in parallel.

4. The container needs one small binary, not a whole interpreter or environment.

5. Rust is my favorite programming language.

Can I extract the game state or accessibility information?

No. The games don't expose any game state or accessibility information. Each one is a 640×480 canvas, so your agent only gets pixels. You will need to utilize some sort of vision model.

Can my agent just write a script to play the games?

You are welcome to try this, and it will probably help with some of the games. But many games won't wait while the script is written. Others change as you play, or have physics that are hard to get right on the first try. So I don't think scripting alone will solve the benchmark.

You can also go the other way: play with no scripts or tool calls at all, and see what the model can do on its own. The open nature of the benchmark allows for such research and exploration.

Can you explain the harness provided in the repository?

I included a very basic harness. (A harness is the operational software infrastructure that wraps around an LLM to turn its passive text into an active agent.) The harness repeats one loop: take a screenshot, ask a model for pyautogui code, and run it, similar to the harness in the OSWorld benchmark. It doesn't have any memory either. It just exists for setup and testing purposes. To score well, you'll want to bring your own harness.

How does the scoring work?

For now, the seventy games are simply scored on completion (within 180 seconds of game time). If you would like to go beyond this, you're welcome to have your agent beat the games as fast as possible, since the benchmark records time too.

If some games are speed-based, doesn't this just mean the score depends on the infrastructure behind the agent?

Partly, yes. In clock mode, games run at their own speed, so more efficient models and faster hardware help. But that's part of the point of the benchmark (and artificial intelligence in general): to make systems as a whole that can match and surpass human capability. You can compare whole systems, or perhaps fix everything but one part and compare that part alone. It's up to you what to study.

If you want to take speed out of the games, there is a tick mode to play the games frame by frame.

Is there a leaderboard?

No. An agent is its harness, model, and hardware together, so it's difficult to create a standard of comparison or verify results. But please share your results, and even better, the methods that got you there.

What do you think it will take for an agent to beat every minigame?

I think a next-generation machine learning architecture will need to be developed that's not just a multimodal large language model. Perhaps some sort of world model with built-in memory that updates at two speeds: fast for reacting and slow for thinking, like humans do. That's just my guess, though!

Paces

--clock RATE

Clock Mode

The game runs at RATE ticks per second of real time. There is no waiting for inputs.

--ticks N

Tick Mode

The game is frozen until the agent presses F1, which advances N ticks. Thinking is free. To hold a key, the agent must keep it down through the F1 press.

Pace Flag Game speed Max wall time per game Max full run
Ticks 3 --ticks 3 Waits for the agent 3,600 presses of F1 As long as the agent takes
Clock 6 --clock 6 Ten times slower 30 minutes 35 hours
Clock 20 --clock 20 Three times slower 9 minutes 10.5 hours
Clock 60 --clock 60 Full speed 3 minutes 3.5 hours

The benchmark officially recommends these four paces, but either mode takes any rate from 1 to 60. You can view a full list of all other settings in the repository's docs/BENCH.md.

An Episode

  1. Two containers start. One for the game, and the other for your agent.
  2. The agent is given the task. It is told the pace and the game's instructions.
  3. It plays from screenshots. It reads the shared display and controls the inputs.
  4. The game ends. It is won, lost, or out of time.
  5. The inputs are replayed. The result is verified with a recording of the inputs.
The agent's container and the game's container share only an X display socket. Screenshots go to the agent and mouse and keyboard input goes to the game. Every input is recorded by tick, the game is played again from that record, and the episode is scored only if the replay reaches the same outcome. Agent Container yours, any Linux image Game Container no network Harness Model Memory X server, 640 × 480 screenshots shared socket input inputs.txt, by tick Played again Same outcome An episode is scored only if its replay reaches the same outcome, as an anti-cheat.
Figure 2. One episode. The two containers share nothing but the display.

Try a Game

Try any of the games, at the paces the agents play at. The full catalog is available at play.minigames.sodhi.tech.

Most games need a keyboard. On a phone, try a pointer game like Clicking Circles.

Pace
Game time
0:00.00
Wall time
0:00.00
Ticks
0
Pointer
–
Input log

    All Seventy Games

    Select a game below to watch a clip of it or try it out. You can use the tags to filter.

    Settled by
    Lost by
    Asks for

    Select a tag to learn what it means.

    Game Inspired by Skill under test Controls Tags

    Trademarked names mentioned in the table belong to their owners and are not affiliated with Minigames Benchmark.

    Run Your Agent

    Bring your own harness. Anything that runs in a Linux container and can read an X display and drive its mouse and keyboard can play. The benchmark handles the display, clock, recording, replay, and scoring.

    Your Own Agent

    1. Write a Containerfile. Start from minigames-agent, which has Python, pyautogui, xdotool, and x11-utils, or from any Linux image with sh and sleep.
    2. Give the command that starts it. The benchmark replaces {task} with the task. The command is saved with the run, so keep API keys in the image, not in the command.
    3. Run the four paces. Give the benchmark the image and the command, once per pace.

    The Built-in Harness

    The agent image includes harness, a minimal starting point. Each turn, it sends one screenshot to any OpenAI-compatible model and runs the pyautogui code that comes back. It remembers nothing between turns. In tick mode, it presses F1 after every answer.

    Agent Ticks 3 Clock 6 Clock 20 Clock 60
    Built-in harnessQwen3.8-27B, 3-bit, one RTX 5070 Ti 16 14 12 10

    Games finished out of 70. A check that the setup works, not a score for the model.

    Full setup

    GPU
    NVIDIA GeForce RTX 5070 Ti, 16 GB, with every layer on the GPU.
    Model
    Qwen3.8-27B, UD-IQ3_XXS quantization (10.9 GB), with its F16 vision projector.
    Speculative decoding
    Multi-token prediction, up to 4 draft tokens.
    Batching
    Batch 2,048 and micro-batch 2,048 tokens, one request at a time.
    Context and cache
    8,192 tokens, flash attention, 8-bit (q8_0) keys and values.
    Shell
    # get the benchmark and build the images
    git clone https://github.com/nsodhi-cmu/MinigamesBenchmark && cd MinigamesBenchmark
    uv sync --extra bench
    podman build -t minigames-game .
    podman build -t minigames-agent agent
    podman build -f my-agent.Containerfile -t my-agent my-agent-source
    
    # run your agent at the four paces, then compare them
    uv run python -m minigames.bench --run-agent my-agent "my-agent {task}" --engine podman --ticks 3  --out runs/ticks3
    uv run python -m minigames.bench --run-agent my-agent "my-agent {task}" --engine podman --clock 6  --out runs/clock6
    uv run python -m minigames.bench --run-agent my-agent "my-agent {task}" --engine podman --clock 20 --out runs/clock20
    uv run python -m minigames.bench --run-agent my-agent "my-agent {task}" --engine podman --clock 60 --out runs/clock60
    uv run python -m minigames.bench --report runs/ticks3 runs/clock6 runs/clock20 runs/clock60

    Docker works too: build with docker build -f agent/Containerfile and run with --engine docker. The full guide, including local models and harness settings, is in the README. The harness source is in agent/.

    Inspired by
    Skill under test
    Controls
    Round ends
    Layout
    Tags