© Stewart Watkiss 2020
S. WatkissBeginning Game Programming with Pygame Zerohttps://doi.org/10.1007/978-1-4842-5650-3_10

10. Artificial Intelligence

Stewart Watkiss1 
(1)
Redditch, UK
 

Artificial intelligence (AI) in computer games is programming to make the computer behave as though it is intelligent. Typically, this may be showing intelligence behind a character or object that is controlled by the computer.

This is not normally the same as machine learning which is what people often associated with artificial intelligence. Machine learning is a type of artificial associated with other systems such as speech recognition or pattern recognition.

In a computer game, artificial intelligence could be as simple as a pre-determined route that the enemy takes, ...

Get Beginning Game Programming with Pygame Zero: Coding Interactive Games on Raspberry Pi Using Python 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.