BEFORE going into detail with particular techniques and algorithms, it is worth spending a little time thinking about what we need from our game’s AI. This chapter looks at the high-level issues around game AI: what kinds of approaches work, what they need to take account of, and how they can all be put together.


It is a common mistake to think that the more complex the AI in a game, the better the characters will look to the player. Creating good AI is all about matching the requirements of the game to the right behaviors and the right algorithms to produce them. There is a bewildering array of techniques in this book, and the right one isn’t always the most obvious choice.

Countless examples of difficult ...

Get AI for Games, Third Edition, 3rd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.