Ship · 4 min read + build task

Test more than the happy path

Combine deterministic tests, adversarial play, and careful human judgment to find failures that matter.

adversarial QAeval fixturesLLM judges
FixtureTrialEvidenceDecisionKeep the evidence. Change one thing. Try again.
Judge the result in the game, not the confidence of the answer.
YOU’LL LEARN TO
  • Build a layered evaluation plan for gameplay and AI-assisted content.
  • Create adversarial fixtures that exercise sequence breaks and boundary cases.
  • Limit LLM judges to subjective questions with evidence and calibration.

Bring with you Lesson 10 and a deterministic offline playthrough.

Match the grader to the question

Game quality is not one score. Use different graders for different properties:

Property Best first grader
no crash, valid save, reachable relay deterministic code
objective understood observed player behavior
line follows explicit tone rules human review, optionally assisted
game is enjoyable diverse players over repeated sessions

An LLM judge is useful for sorting notes or applying a narrow rubric to text. It is a poor substitute for pathfinding, schema validation, or watching a player become lost.

Attack the sequence

Happy-path testing repairs Moss, Ridge, Floodplain, then returns home. Adversarial QA tries the wrong order and wrong timing:

  • return to the beacon before any repair;
  • carry two cells to an already repaired relay;
  • save during a repair animation, then reload;
  • collect a cell while the inventory is full;
  • approach every map boundary and obstruction;
  • disconnect before optional dialogue returns;
  • press confirm repeatedly during a transition;
  • load an older save version.

Each fixture needs initial state, action sequence, expected invariant, and captured result. “Try to break it” is not reproducible.

Record the seed, save version, input device, build ID, and whether optional runtime dialogue was enabled. A failure that cannot be recreated is still worth noting, but it is not yet a reliable regression case.

Keep simulation terms precise

A scripted bot that walks paths is not an LLM agent. A trained policy is not a model call on every step. Tools such as Unity ML-Agents support training and simulation workflows, but a small project can learn plenty from deterministic path walkers, random input fuzzing, and recorded human runs. Choose the cheapest method that produces relevant evidence.

Calibrate subjective judges

If a collaborator reviews dialogue tone, create examples that humans already labeled: clearly aligned, clearly off-tone, and ambiguous. Ask for cited rules and uncertainty, not just a number. Compare the judge against human labels on heldout fixtures. Repeat variable trials.

When judge and human disagree, inspect the rubric and evidence before changing either. Agreement is useful only when both are evaluating the intended property.

Anthropic's eval guide recommends evaluating outcomes and traces and separating tasks, trials, and graders. Use that structure without depending on a hosted evaluation platform: fixtures and results can be plain files in your repository.

Failure modes and tradeoffs

Judge monoculture uses one model for every property. Fixture leakage tunes prompts against all test cases, leaving no heldout evidence. Coverage theatre counts thousands of random actions that never touch meaningful states. Accessibility as checklist marks text “readable” without testing size, contrast, timing, or alternate cues with people.

More tests cost time and can stabilize the wrong design. Prioritize the complete loop, irreversible state, common device/input differences, and failures that strand the player. Use basic accessibility guidance to broaden scenarios, then validate with actual players.

Build task: a layered test run

Create ten fixtures: four deterministic loop checks, three adversarial sequences, two accessibility observations, and one tone-review case. Hold out two from any prompt tuning. Run the suite on one known-good seed and one previously rejected seed. Convert every confirmed defect into a regression fixture.

Review this Signal Garden test result using the supplied rubric.
First classify the property as deterministic, behavioral, or subjective.
If deterministic, do not judge it; name the code check required.
If subjective, cite the exact rubric rule and evidence, give uncertainty,
and request human review when evidence conflicts. Do not average unrelated issues.

Completion evidence

The report must show fixture inputs, repeated trial results where behavior varies, grader type, and final human disposition. At least one adversarial case should exercise a sequence the happy path never reaches. The suite succeeds when it detects the deliberately rejected seed and the known invalid save without relying on prose judgment.

YOUR TAKEAWAY

A quality matrix, ten regression fixtures, and an adversarial playtest report.

A QUICK CHECK

Which check should not be delegated to an LLM judge?

Go a little deeper.

Primary sources behind this chapter. Signal Garden is our original teaching example.

AnthropicDemystifying evals for AI agentsUnity documentationUnity ML-AgentsGame Accessibility GuidelinesBasic game accessibility guidelines

Search the course

Try “context”, “worlds”, “evaluation” or “shipping”.