Files
developer-roadmap/roadmaps/game-developer/content/decision-tree@rwGivalwv2ozdSlVMSc4U.md

627 B

Decision Tree

A decision tree is a hierarchical structure where each node tests a condition and branches to different subtrees based on the result. In game AI, decision trees are used to encode rules that determine NPC behavior, such as whether to attack, flee, or patrol. They are simple to understand and debug but can become large and difficult to maintain for complex behaviors.

Visit the following resources to learn more: