🌍 Game Development · subject

Game Development Game AI Syllabus

The Game AI syllabus for Game Development in full: 9 chapters and 39 topics, every one listed below, plus 50 Game AI flashcards with answers.

9Chapters
39Topics
50Flashcards

Game AI syllabus: all 9 chapters

Expand any chapter to see its topics and sub-topics.

  1. Introduction to Game AI

    3 topics
    • History of Game AI
    • Basic Concepts and Definitions
    • Applications of Game AI
  2. Fundamental AI Techniques

    4 topics
    • Finite State Machines (FSM)
    • Decision Trees
    • Behavior Trees
    • Utility Systems
  3. Pathfinding and Navigation

    5 topics
    • A* Algorithm
    • Dijkstra's Algorithm
    • Navigation Meshes
    • Path Smoothing
    • Local Avoidance
  4. Movement and Steering Behaviors

    6 topics
    • Seek and Flee
    • Arrival and Departure
    • Pursuit and Evasion
    • Wander
    • Obstacle Avoidance
    • Path Following
  5. Advanced AI Techniques

    5 topics
    • Machine Learning in Games
    • Neural Networks
    • Genetic Algorithms
    • Reinforcement Learning
    • Monte Carlo Tree Search (MCTS)
  6. AI for Different Game Genres

    5 topics
    • AI in Strategy Games
    • AI in First-Person Shooters
    • AI in Role-Playing Games
    • AI in Sports Games
    • AI in Puzzle Games
  7. AI Optimization and Performance

    4 topics
    • Optimizing Pathfinding
    • Reducing Computational Overhead
    • Balancing AI Complexity
    • Multithreading and Parallelism
  8. AI Tools and Frameworks

    4 topics
    • Unity ML-Agents
    • Unreal Engine AI Tools
    • OpenAI Gym
    • TensorFlow and PyTorch
  9. Case Studies and Real-World Examples

    3 topics
    • AI in Classic Games
    • AI in Modern AAA Titles
    • AI in Indie Games

Game Development Game AI flashcards — 50 questions with answers

  1. In what decade did academic and commercial game AI begin, and which early game is credited as one of the first to use AI to control an opponent?

    Game AI dates to the 1950s-1970s; Nim-playing machines (e.g., Nimrod, 1951) and especially Pac-Man (1980), whose four ghosts each used distinct pursuit behaviors, are landmark early examples of AI-controlled opponents.

  2. What distinguishes the goal of "game AI" from the goal of academic/general AI?

    Academic AI aims to maximize optimal/intelligent behavior, while game AI aims to create the illusion of intelligence that is fun, believable, and challenging for the player — it prioritizes player experience over true optimality.

  3. Define an "agent" in the context of game AI.

    An agent is an autonomous entity that perceives its environment through sensors, makes decisions, and acts upon the environment through actuators to pursue goals — in games, typically an NPC (non-player character).

  4. What are the three broad layers commonly used to structure game AI?

    Movement (how an agent moves, e.g., steering/pathfinding), Decision-making (what to do, e.g., FSM/behavior trees), and Strategy (group/team-level coordination and planning).

  5. Name four common applications of AI within video games.

    Non-player character (NPC) behavior, pathfinding/navigation, procedural content generation, difficulty balancing/adaptation, and player modeling/opponent tactics.

  6. What is a Finite State Machine (FSM) in game AI?

    A model of computation consisting of a finite set of states, one active state at a time, and transitions triggered by conditions or events; the agent's behavior is defined by the currently active state.

  7. List the core components that define any Finite State Machine.

    A set of states, an initial (start) state, a set of input conditions/events, and a transition function mapping (current state, input) to a next state, plus the actions performed in/on each state.

  8. What is a key limitation of standard FSMs that motivated hierarchical FSMs?

    State explosion — the number of transitions grows combinatorially as states increase (up to $n(n-1)$ transitions for $n$ states), making large FSMs hard to design and maintain; hierarchical FSMs group states to reduce this.

  9. What is a Decision Tree in game AI, and how is it evaluated?

    A tree of decision (condition) nodes and action (leaf) nodes; evaluation starts at the root, and at each internal node a boolean/attribute test selects a branch, recursing until a leaf action is reached.

  10. How does a Decision Tree differ structurally from a Behavior Tree?

    A decision tree's internal nodes are pure conditional tests that route to a single leaf action each traversal, whereas a behavior tree has composite control nodes (sequence/selector) that can execute multiple actions over time and return running/success/failure statuses.

  11. What are the three standard return statuses a Behavior Tree node can report?

    Success, Failure, and Running (in-progress).

  12. In a Behavior Tree, what is the behavior of a Sequence node?

    It runs children in order and returns Success only if all children succeed; it returns Failure as soon as any child fails (logical AND), and Running while a child is still executing.

  13. In a Behavior Tree, what is the behavior of a Selector (Fallback) node?

    It runs children in order and returns Success as soon as any child succeeds; it returns Failure only if all children fail (logical OR), and Running while a child is executing.

  14. What are decorator and parallel nodes in a Behavior Tree?

    A decorator has one child and modifies its result or repetition (e.g., inverter, repeater, until-fail); a parallel node runs all children simultaneously and returns success/failure based on a configured policy (e.g., succeed when N children succeed).

  15. What is a Utility System (utility-based AI) in game AI?

    A decision-making approach that assigns each possible action a numeric utility score computed from world state via utility/consideration functions, then selects (or weight-randomly picks) the action with the highest score.

  16. How does a Utility System typically choose an action, and what advantage does this give over an FSM?

    It scores every action with a utility function and picks the maximum (or samples proportionally); this scales gracefully and produces smooth, context-sensitive, nuanced decisions without hand-authoring every transition as an FSM requires.

  17. What problem does the A* algorithm solve, and what category of algorithm is it?

    A* solves the single-source shortest-path problem to a specific goal on a weighted graph; it is an informed (heuristic) best-first search algorithm.

  18. State the core evaluation function A* uses to order nodes.

    $f(n) = g(n) + h(n)$, where $g(n)$ is the cost of the path from the start to node $n$ and $h(n)$ is the heuristic estimate of the cost from $n$ to the goal.

  19. What property must an A* heuristic have to guarantee an optimal (shortest) path?

    It must be admissible — it never overestimates the true cost to the goal: $h(n) \leq h^{*}(n)$ for all $n$, where $h^{*}(n)$ is the actual optimal remaining cost.

  20. What is the difference between an admissible and a consistent (monotone) A* heuristic?

    Admissible: $h(n) \leq h^{*}(n)$. Consistent (stronger): for every edge $n \to n'$ with cost $c$, $h(n) \leq c(n,n') + h(n')$ and $h(\text{goal})=0$. Consistency implies admissibility and lets A* avoid re-expanding nodes.

Show the other 30 Game AI flashcards
  1. Give the two most common admissible heuristics used on a grid, and when each applies.

    Manhattan distance $h = |x_1 - x_2| + |y_1 - y_2|$ for 4-directional movement, and Euclidean distance $h = \sqrt{(x_1-x_2)^2 + (y_1-y_2)^2}$ (or Chebyshev/octile) for movement allowing diagonals.

  2. What does A* reduce to when the heuristic is $h(n) = 0$ for all nodes?

    It reduces to Dijkstra's algorithm — an uninformed uniform-cost search that expands nodes purely by accumulated path cost $g(n)$.

  3. What problem does Dijkstra's algorithm solve and what is its key non-negativity requirement?

    It finds shortest paths from a single source to all other nodes in a weighted graph; it requires all edge weights to be non-negative.

  4. What is the time complexity of Dijkstra's algorithm using a binary min-heap (priority queue)?

    $O((V + E)\log V)$, where $V$ is the number of vertices and $E$ the number of edges.

  5. Compare A* and Dijkstra in terms of nodes expanded and use case.

    Dijkstra explores uniformly in all directions (more nodes) and finds paths to all targets; A* uses a goal-directed heuristic to expand far fewer nodes toward a single goal, making it faster when one destination is known.

  6. What is a Navigation Mesh (NavMesh)?

    A data structure representing the walkable surface of a game world as a set of convex polygons (cells); agents can move in a straight line within any cell, and pathfinding is done over the graph of adjacent polygons.

  7. Why are NavMeshes generally preferred over uniform grids or waypoint graphs for pathfinding?

    They cover open areas with far fewer, larger convex polygons (less memory, fewer search nodes), represent walkable space accurately, and allow smooth any-angle movement instead of constraining agents to grid cells or fixed waypoints.

  8. Why must the polygons (cells) of a navigation mesh be convex?

    Convexity guarantees that a straight line between any two points inside the same polygon stays within the walkable area, so an agent can cross a cell directly without hitting an obstacle.

  9. What is path smoothing, and why is it needed after grid/NavMesh pathfinding?

    Path smoothing removes unnecessary intermediate waypoints and jagged turns from a raw computed path to produce a more natural, direct route; it is needed because grid A* paths are blocky/zig-zagged and follow cell boundaries.

  10. Describe the "string-pulling" (funnel) idea used in path smoothing.

    Treat the corridor of adjacent portals as a funnel and pull the path taut like a string, so it hugs inside corners; the funnel algorithm produces the shortest turning path through a sequence of NavMesh portals.

  11. What is a simple line-of-sight (raycast) path smoothing technique?

    Starting from a node, cast a ray to the farthest subsequent waypoint that is still directly visible (unobstructed), skip the intermediate nodes, and repeat — reducing the path to the minimal set of turning points.

  12. What is local avoidance (a.k.a. collision avoidance) in movement AI?

    A reactive, short-horizon technique where an agent adjusts its steering in real time to avoid colliding with dynamic obstacles or other moving agents, complementing the global path from pathfinding.

  13. What is Reciprocal Velocity Obstacles (RVO/ORCA), a common local-avoidance method?

    A velocity-space technique where each agent chooses a new velocity outside the set of velocities that would lead to collision, assuming other agents share the avoidance effort reciprocally, yielding smooth oscillation-free crowd movement.

  14. In Reynolds' steering framework, what is the Seek behavior and its desired velocity?

    Seek steers an agent toward a static target position; the desired velocity points from the agent to the target at maximum speed: $\vec{v}_{desired} = \hat{d}\, v_{max}$ where $\hat{d}$ is the unit vector toward the target.

  15. How is the steering force computed from a desired velocity in Reynolds' model?

    $\vec{f}_{steer} = \vec{v}_{desired} - \vec{v}_{current}$, typically truncated to a maximum steering force; this force is applied to the velocity each frame.

  16. What is the Flee behavior and how does its desired velocity relate to Seek?

    Flee steers the agent directly away from a target; its desired velocity is the negation of Seek's: $\vec{v}_{desired} = -\hat{d}\, v_{max}$, pointing from the target toward the agent at max speed.

  17. What is the Arrival behavior, and how does it differ from Seek?

    Arrival seeks a target but decelerates within a defined slowing (braking) radius so the agent smoothly stops at the target instead of overshooting, unlike Seek which approaches at full speed.

  18. Give the desired-speed formula used by Arrival inside the slowing radius.

    $v_{desired} = v_{max}\,\dfrac{\text{distance}}{r_{slow}}$ (clamped to $v_{max}$), so speed scales linearly with distance and reaches zero at the target; $r_{slow}$ is the slowing radius.

  19. What is the Departure behavior in steering AI?

    The opposite of Arrival: the agent flees a target but with speed that increases as it gets closer to the target (strongest repulsion near the target) and diminishes with distance, giving a smooth push-away that fades with range.

  20. How does the Pursuit behavior improve on plain Seek when chasing a moving target?

    Pursuit predicts the target's future position and seeks that predicted point rather than its current position, intercepting the target instead of trailing behind it.

  21. Give a common formula for the predicted interception point used in Pursuit.

    $\vec{p}_{predict} = \vec{p}_{target} + \vec{v}_{target}\, T$, where the prediction time is often $T = \dfrac{\lVert \vec{p}_{target} - \vec{p}_{agent} \rVert}{v_{max}}$ (distance divided by pursuer's max speed); the agent then seeks $\vec{p}_{predict}$.

  22. What is the Evasion behavior and how does it relate to Pursuit?

    Evasion is the inverse of Pursuit: the agent predicts the pursuer's future position and flees from that predicted point rather than the pursuer's current position, to escape more effectively.

  23. What is the Wander steering behavior meant to produce?

    Aimless yet smooth, non-jittery random movement — the agent appears to roam naturally rather than jerk randomly each frame.

  24. Describe the classic circle-based method for implementing Wander.

    Project a circle ahead of the agent, place a target on the circle's circumference, and each frame perturb that target's angle by a small random amount (a random walk on the circle); then seek that point. The small per-frame jitter with forward projection yields smooth wandering.

  25. What is the Obstacle Avoidance steering behavior (as distinct from local/agent avoidance)?

    A behavior that avoids static obstacles by projecting a detection box or feelers ahead of the agent along its velocity, detecting the nearest obstacle in that path, and generating a lateral (sideways) steering force to steer around it.

  26. How does Obstacle Avoidance differ from Flee?

    Flee moves directly away from a point regardless of heading, whereas Obstacle Avoidance only reacts to obstacles lying ahead in the agent's path (using a look-ahead probe) and steers laterally to slip past them while continuing forward.

  27. What is the Path Following steering behavior?

    A behavior that makes an agent travel along a predefined path (sequence of waypoints or a spline), by predicting its future position, finding the nearest point on the path, and seeking a target slightly ahead along the path if it strays outside a path radius.

  28. In Path Following, what determines whether a corrective steering force is applied?

    The agent projects its future position and measures its distance to the path's centerline; if that distance exceeds the path radius (tube width), it seeks a target a bit further along the path to get back on it, otherwise it continues unchanged.

  29. How can multiple steering behaviors be combined for complex movement, and what are the two main methods?

    By combining their steering forces: weighted (linear) sum — add each behavior's force scaled by a weight — or prioritized/blended arbitration where higher-priority behaviors (e.g., collision avoidance) can dominate or truncate lower-priority ones.

  30. Compare FSMs, Behavior Trees, and Utility Systems as decision-making techniques.

    FSMs are simple and fast but suffer state/transition explosion; Behavior Trees are modular, hierarchical, and reusable, scaling better for complex reactive logic; Utility Systems give smooth, context-weighted, continuous decisions but are harder to debug and tune. Choice depends on complexity and desired nuance.

Game Development Game AI FAQ

What is in the Game Development Game AI syllabus?

Game Development Game AI is split into 9 chapters: Introduction to Game AI, Fundamental AI Techniques, Pathfinding and Navigation, Movement and Steering Behaviors, Advanced AI Techniques, AI for Different Game Genres, AI Optimization and Performance, AI Tools and Frameworks and Case Studies and Real-World Examples. Together they contain 39 topics.

How many chapters are in Game Development Game AI?

9 chapters, containing 39 topics. The largest chapter is Movement and Steering Behaviors, with 6 topics.

Are there flashcards for Game Development Game AI?

Yes — a 50-card Game AI deck, printed in full in the flashcards section of this page and available in the Examius app with spaced repetition. The free plan covers one exam of your choice, including its flashcards; Examius Pro, a one-time purchase, unlocks every other exam and deck.