Artificial intelligence in video games is largely used to determine the behavior of non-player characters (NPCs) in games.
The application of the term “artificial intelligence” might be a misnomer, as many games don’t use true AI techniques. Game developers are usually not AI researchers, and many games use simple predetermined patterns.
A lot of AI in game development goes toward defining the way a computer opponent behaves. Behavior can range from relatively simple patterns in action games all the way to chess programs that can beat champion human players.
Many early video games like Pong (1972) only allowed human opponents to face each other. Though computer-controlled opponents existed from the very beginning in Computer Space (1971).