skip to content

As an AI lead, how do you decide whether a game's opponents should be authored, learned or a hybrid, and what does that choice commit the team to?

level: principalimportance: should knowfreq 28%

answer

  1. fun, not optimal
  2. knobs versus weights
  3. simulator plus clear objective
  4. determinism and retraining
  5. learned control inside authored goals

basics

~20 s

Default to authored opponents where designers must tune, debug and reproduce behaviour; use learning where a simulator and clear objective exist and hand-authoring fails, such as physics control or test bots, and budget for retraining, determinism and inference cost.

solid answer

~40 s

Most shipped opponents stay authored because opponents must be fun rather than optimal, designers need knobs not weights, bugs must be explainable and reproducible, lockstep and replays need determinism, and a balance patch should be a parameter edit rather than a retrain. Learning earns its place where hand-tuning fails and a fast simulator with a measurable objective exists: vehicle and physics control, automated playtesting and balance bots, human-like stand-ins cloned from logs, and perfect-information board games. The usual answer is a **hybrid**: authored goals and tactics, a learned controller underneath, and an authored fallback. Choosing learning commits the team to a training pipeline for the game's life, evaluation on every retrain, exploit detection, a determinism policy, an inference budget and a kill switch, so start with a bounded pilot and explicit metrics.

go deeper

for a junior

Recall the main reasons shipped opponents are usually authored: designer control, debugging, determinism and the cost of change.

for a middle

Explain where learning beats hand-authoring, such as physics control and playtesting bots, and why a simulator and clear objective are prerequisites.

for a senior

Show how you would structure a hybrid with learned control under authored goals and an authored fallback, and how you would evaluate it.

for a principal

Set the standing direction: criteria for adopting learning, the pipeline and budgets it commits the team to, and a bounded pilot with agreed metrics.

## The decision An AI lead sets the default for how the team builds opponents: **authored** (state machines, behavior trees, planners and utility scoring, tuned by designers), **learned** (a policy trained by reinforcement or imitation learning), or a **hybrid** in which learned parts sit inside an authored structure. There is no single right answer; it depends on the game, the team and what the opponent is for. What the lead must get right is the reasoning, and the commitments that follow from it. ## Why most shipped opponents stay authored - **Designer control.** Opponents exist to be fun, not optimal. They must telegraph attacks, make readable mistakes and follow a difficulty curve. Authored logic exposes those knobs directly; a learned policy has weights, not knobs. - **Debugging and explainability.** When a guard walks into a wall, an authored system shows which state or branch fired. A learned policy offers an input and an output, and retraining to fix one behaviour can shift others. - **Determinism.** Replays, lockstep networking and bug reproduction need identical results on every machine. Floating-point inference can differ across processors and instruction sets unless the inference code fixes the order of operations or uses integer arithmetic. - **Cost of change.** A balance patch to an authored AI is usually a parameter edit. A learned policy was trained on the old rules, so changed rules mean retraining and re-evaluation. - **Runtime budget.** Dozens of agents each running a network at every decision must fit in the frame alongside everything else. - **Pipeline and skills.** Training needs simulation infrastructure, compute, evaluation suites and people who can run them. ## Where learning earns its place - **Control in continuous physics.** Driving at the grip limit, balancing a ragdoll or flying a vehicle are hard to hand-tune and come with a clear objective and a simulator. - **Testing and balance.** Agents that play thousands of matches find exploits, dominant strategies and holes in levels. They never ship to players, so most of the concerns above fall away. - **Human-like behaviour.** Bots cloned from match logs can stand in for players in ways hand-written logic struggles to imitate. - **Perfect-information board games** such as chess and Go, where search guided by learned evaluation plays at the highest known level. ## Hybrids are the common answer | Layer | Usually authored | What learning can supply | |---|---|---| | Goals and strategy | which objective to pursue | rarely, outside board games | | Tactics | when to attack or retreat | a learned consideration inside a utility score | | Control | path following and simple steering rules | driving lines, physics control, aim smoothing | | Tuning | the knobs and their ranges | offline search for good knob values | An authored layer decides **what** the opponent wants; a learned controller decides **how** to carry it out in the physics; an authored **fallback** takes over when the learned part meets a situation it was not trained for. Designers keep the levers that shape the experience. ## Criteria a lead applies 1. Is there a fast, faithful **simulator** and a measurable objective? Without both, learning stalls. 2. Must the behaviour be **strong or human-like**, or **readable and tunable**? The first leans toward learning, the second toward authoring. 3. How often will the **rules change** after launch, and can retraining keep pace? 4. Does the game need **bit-exact determinism** across machines? 5. What is the **inference budget** per agent per frame on the weakest target hardware? 6. Can QA **reproduce and sign off** the behaviour, and can designers adjust it without an ML engineer? ## What the choice commits the team to Choosing learned or hybrid opponents commits the team to: - a training pipeline kept alive for the life of the game, not a one-off model; - an evaluation suite that runs on every retrain, including regressions against old strategies; - exploit detection during training, since agents find bugs players will also find; - a determinism policy for anything that touches replays or networked simulation; - an inference budget enforced like any other frame budget; - a switch that falls back to authored behaviour if a learned component misbehaves in the field. A sensible standing direction is a bounded pilot first, such as one vehicle controller or a playtesting bot, with success metrics agreed in advance. Widen the scope only when the learned version beats the authored one on those metrics at a cost the team can sustain.

  • Why is a playtesting bot a lower-risk first use of learning than a shipped opponent?
    It never reaches players, so fun, readability, determinism across player machines and runtime budget stop mattering. Its job is to find exploits and dominant strategies, which reward-maximising agents do well. The team still builds the pipeline and skills it would need later, at a fraction of the risk.
  • In a hybrid opponent, where would you put the learned component first?
    At the control layer, under authored goals: for example a learned driving controller that follows the racing line an authored strategy picks. It has a clear objective and a simulator, its failures are bounded by the authored layer above it, and an authored controller can serve as the fallback.

  • Learned opponents are always stronger, so they are always the better choice.
  • Authored AI is legacy technique that machine learning will simply replace.
  • A trained policy keeps working unchanged after a balance patch.
  • Neural inference gives identical results on every machine by default.
  • Once trained, a learned opponent needs no further pipeline or upkeep.