←Primers
    Primer · 3 min

    Game AI: How Computers Play and Populate Video Games

    Game AI is the set of techniques that make computer-controlled characters and opponents behave plausibly, and a research field that uses games to test AI methods.

    Updated 23 November 2026 · numbered links go to the papers behind each claim

    What it is

    Game AI is the collection of techniques that make the computer-controlled parts of a game, such as enemies, allies, crowds and opponents, appear to act with purpose. The same term also names a research field that studies these techniques and uses games as testing grounds for artificial intelligence more broadly.

    In commercial games the goal is usually entertainment rather than flawless play. An opponent that never makes mistakes is rarely fun, so designers tune behaviour to feel challenging, readable and believable. Long-standing tools include pathfinding algorithms that work out how a character moves around obstacles, finite state machines that switch a character between modes such as patrolling, chasing and fleeing, and search methods that look ahead through possible moves in board games. Many of these techniques are deliberately simple and predictable, because designers need to control and debug them.

    In research, games are valued because they offer clear rules, measurable outcomes and environments that can be run many times. Some games are easy for computers but hard for people, and others the reverse, which makes them useful for probing what different AI methods can and cannot do.

    What research is finding

    A broad overview paper divides the academic field into ten main research areas. These include learning the behaviour of non-player characters, search and planning, player modelling, procedural content generation, computational narrative, believable agents, AI-assisted game design and AI in commercial games. The authors argue that these areas inform one another in ways that are only partly explored[5]. A survey of behaviour trees traces one technique from games into robotics. Game programmers found that finite state machines scaled poorly and were hard to extend and reuse as characters grew more complex. Behaviour trees organise the switching logic into a hierarchical tree, and the survey reports that this makes them more modular and easier for both people and algorithms to build and analyse[1].

    Competitions and shared benchmarks have shaped much of the academic work. One survey of AI for real-time strategy games focuses on StarCraft, which it describes as having become a unified test bed. It outlines the specific challenges these games pose and summarises the architectures used by competition entrants[2]. A paper describing the Mario AI benchmark, an open-source platform built on a public-domain clone of Super Mario Bros, summarises solutions contributed by researchers and students to competitions held with international conferences. It presents itself as a reference point for research and teaching with the benchmark[6].

    Other work pushes towards generality. A survey of the General Video Game AI framework, created in 2014, describes a platform in which agents must play many games they have not seen before, sometimes without access to game simulations. Further tracks ask agents to design new levels or rules[3]. Beyond entertainment, an overview from a European project on serious games presents reusable, open-source AI components for player modelling, language processing and believable non-playing characters. The authors report that the components were applied and validated in serious games tested with real end-users, though the abstract does not give the number of games or participants[4].

    Open questions

    Several of these surveys end by listing problems that remain unsolved. The real-time strategy survey explicitly separates problems it considers solved from those still open[2], and the behaviour tree survey closes with a list of open research challenges[1]. A recurring uncertainty is how far success in one game, or one benchmark, tells us anything about performance elsewhere. General game playing frameworks exist precisely because skill in a single game may not transfer.

    There is also a gap between what researchers measure and what players experience. Winning is easy to score, but believability, fun and fairness are harder to define and evaluate, and methods that excel in competitions may not suit commercial design, where predictability and control matter. How the various research areas could be combined is described in the overview literature as partly existing and partly potential, pointing to unexplored subfields[5]. Claims that reusable components lower development costs and time come from the project that built them[4], and independent evidence on how widely such approaches hold would help settle the question.

    Papers

    1. A survey of Behavior Trees in robotics and AI. Robotics and Autonomous Systems, 2022. doi:10.1016/j.robot.2022.104096
    2. A Survey of Real-Time Strategy Game AI Research and Competition in StarCraft. IEEE Transactions on Computational Intelligence and AI in Games, 2013. doi:10.1109/tciaig.2013.2286295
    3. General Video Game AI: A Multitrack Framework for Evaluating Agents, Games, and Content Generation Algorithms. IEEE Transactions on Games, 2019. doi:10.1109/tg.2019.2901021
    4. Artificial intelligence moving serious gaming: Presenting reusable game AI components. Education and Information Technologies, 2019. doi:10.1007/s10639-019-09968-2
    5. A Panorama of Artificial and Computational Intelligence in Games. IEEE Transactions on Computational Intelligence and AI in Games, 2014. doi:10.1109/tciaig.2014.2339221
    6. The Mario AI Benchmark and Competitions. IEEE Transactions on Computational Intelligence and AI in Games, 2012. doi:10.1109/tciaig.2012.2188528