Part
Decision-making architecture
You might say: AI architecture, behaviour selection, behaviour system, behavior system
The structure that turns the AI's knowledge and goals into a next action.
- What it does
- Balances reactivity, authorial control, adaptability, clarity and computational cost instead of treating one algorithm as universally best.
- Ask
- What structure selects actions here, and what does it make easy or difficult to tune?
- Trouble
- The structure is hard to inspect, cannot express a needed choice, or produces valid actions that look foolish to the player.
What to look for
- A graph, tree, score table, plan chain, rule list or learned network in a debug view
- A visible decision trace that names the selected action
- Different actions selected when the same evidence changes
Parts
- Evaluation function: A function that turns a state, action or outcome into a comparable score.
- Forward model: A fast copy of the game's rules that maps a state and a joint order set to the next state without rendering or waiting for the live game.
- Transposition table: A hash-keyed cache of results for game states or rules queries reached during search.
- Response curves: Curves that map a normalised input to a 0 to 1 consideration score.
- Decision frequency: How often the AI rechecks evidence and selects a new action.
- Commitment: A bias or minimum time that keeps the AI on its current choice until another option is clearly better.
- Randomness: A controlled chance of choosing among several reasonable options instead of always taking the same top choice.
- Planning horizon: How far into future actions and consequences the AI reasons before acting.
- AI budget: The time and computation allowed for sensing, scoring, planning and search in each update or turn.
- Simultaneous-move decisions: A decision step in which each side commits a complete order set before any side sees the other's reply.
Catalogue: Architecture
- Finite-state machine: A graph of discrete states with conditional transitions between them, optionally nested as a hierarchical state machine. It counts as an FSM when one current state and its transition conditions organise the behaviour.
- Behaviour tree: A tree of behaviours whose sequences, selectors and decorators choose or compose tasks. It counts as a behaviour tree when traversal through behaviour nodes determines the active task rather than a state graph.
- Utility system: A scorer that rates available options against several considerations and selects a high-utility action. It counts as utility when comparable scores rank options, even if the considerations are authored rules or learned values.
- Goal-oriented action planning: A planner that searches actions with preconditions and effects to reach a chosen goal. It counts as GOAP when a goal and symbolic action model produce a sequence rather than a hand-written path through behaviours.
- Hierarchical task network: A planner that decomposes a high-level task into methods and primitive actions. It counts as HTN when compound tasks are repeatedly decomposed according to methods and world-state conditions.
- Rule-based script: A set of authored if-then rules that maps conditions to actions or priorities. It counts as rule-based when explicit conditions and responses are the primary representation, whatever language or editor stores them.
- Game-tree search: A search through possible future game states, including minimax with alpha-beta pruning, Monte Carlo tree search, and variants that branch on both sides' orders at once. It counts as game-tree search when the controller explores future action branches rather than only evaluating the current state.
- Case-based planning: A planner that retrieves plans learned from human demonstrations and adapts them through a dependency graph. It counts as case-based when reuse and adaptation of stored plans organise the decision rather than only generating a plan from scratch.
- Learned policy: A policy learned from examples, rewards or demonstrations that maps state information to actions. It counts as learned when the policy parameters come from training data or interaction rather than only hand-authored decision rules.
Sources
- Michael Dawe, Steve Gargolinski, Luke Dicken, Troy Humphreys, and Dave Mark, Behavior Selection Algorithms: An Overview, Section 4.1
While each of these example AIs may follow the Sense–Think–Act cycle, the “think” part of that cycle is ill-defined. There are a variety of algorithms to choose from, and each is appropriate for different uses.
- Georgios N. Yannakakis and Julian Togelius, Artificial Intelligence and Games, ch. 2, p. 32
Finite state machines, behavior trees and utility-based AI are ad-hoc behavior authoring methods that have traditionally dominated the control of non-player characters in games.
Use it on your project
teardown-apply: hold "Decision-making architecture" (decision-core) from the teardown at https://teardownatlas.com/game-ai/ against my project
Paste it into a coding agent that has the teardown skills.
An AI agent wrote this map with the teardown skill. It can contain errors: check the sources before you rely on a part. About and legal