13. Artificial Intelligence

Games are more fun when the player has to use his or her intelligence to outwit an opponent. The opposing intelligence might be another player, as in a multiplayer game, or it might be built into the game by the developer and displayed through the actions of the other characters in the game. In games, the latter approach is often called artificial intelligence (AI), and it can make the games a lot more fun to play.

We can draw a distinction between AI in games and the research field of AI, though the distinction gets fuzzier as games progress. AI in research and AI in games have different goals. AI research has the aim of reproducing aspects of human intelligence using computers. AI in games aims to make a game more ...

Get Learning Android Game Programming: A Hands-On Guide to Building Your First Android Game now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.