Game artificial intelligence
Overview
 
Game artificial intelligence refers to techniques used in computer and video games to produce the illusion
Illusion
An illusion is a distortion of the senses, revealing how the brain normally organizes and interprets sensory stimulation. While illusions distort reality, they are generally shared by most people....

 of intelligence in the behavior of non-player character
Non-player character
A non-player character , sometimes known as a non-person character or non-playable character, in a game is any fictional character not controlled by a player. In electronic games, this usually means a character controlled by the computer through artificial intelligence...

s (NPCs). The techniques used typically draw upon existing methods from the field of artificial intelligence
Artificial intelligence
Artificial intelligence is the intelligence of machines and the branch of computer science that aims to create it. AI textbooks define the field as "the study and design of intelligent agents" where an intelligent agent is a system that perceives its environment and takes actions that maximize its...

 (AI). However, the term game AI is often used to refer to a broad set of algorithm
Algorithm
In mathematics and computer science, an algorithm is an effective method expressed as a finite list of well-defined instructions for calculating a function. Algorithms are used for calculation, data processing, and automated reasoning...

s that also include techniques from control theory
Control theory
Control theory is an interdisciplinary branch of engineering and mathematics that deals with the behavior of dynamical systems. The desired output of a system is called the reference...

, robotics
Robotics
Robotics is the branch of technology that deals with the design, construction, operation, structural disposition, manufacture and application of robots...

, computer graphics
Computer graphics
Computer graphics are graphics created using computers and, more generally, the representation and manipulation of image data by a computer with help from specialized software and hardware....

 and computer science
Computer science
Computer science or computing science is the study of the theoretical foundations of information and computation and of practical techniques for their implementation and application in computer systems...

 in general.

Since game AI is centered on appearance of intelligence and good gameplay, its approach is very different from that of traditional AI; workaround
Workaround
A workaround is a bypass of a recognized problem in a system. A workaround is typically a temporary fix that implies that a genuine solution to the problem is needed...

s and cheats are acceptable and, in many cases, the computer abilities must be toned down to give human players a sense of fairness.
 
x
OK