Book Image

Learning Game AI Programming with Lua

By : David Young
Book Image

Learning Game AI Programming with Lua

By: David Young

Overview of this book

Table of Contents (16 chapters)
Learning Game AI Programming with Lua
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
Getting Started with AI Sandbox
Index

Pitfalls of finite state machines


The downside of state machines, though, are the exponential possible connections that come with the addition of each new state. To reduce latency or unexpected chains of actions, state machines need to be well connected so that agents can quickly select the best action.

Our implementation of state transitions is a simple, priority-based approach that might not fit all circumstances, in which case, a weighted or search-based approach might become necessary. This additional complexity can further complicate logic selection, where actions are chosen for reasons that aren't apparent.