← Library · Core concept

Utility AI

Utility AI is an AI decision-making system that evaluates various potential actions based on their 'utility' or desirability in the current game state, choosing the action with the highest score. Instead of hardcoded rules, each possible action (e.g., attack, heal, flee) is assigned a score based on factors like health, distance to enemies, or available resources. The AI then selects the action that maximizes its calculated utility, leading to more flexible and context-aware responses.

In plain terms

It's like an NPC constantly asking itself, 'What's the best use of my time right now?' and then picking the option that provides the most benefit given its goals and surroundings.

Why it matters

Utility AI enables highly adaptive and nuanced NPC behavior, allowing AI to respond intelligently to dynamic game situations without explicit pre-programmed state changes.

Learn one new AI thing every day.

Daily Deck sends you seven plain-English cards like this every morning. Free.

Start free