How it is implemented depends on the type of game, such as RTS (Real-time strategy), FPS (First-Person shooter), RPGs, sport games, etc. Here are some common elements in which AI are implemented:
- Event Driven Engine: AI reacts based on events.
- Specific AI Structure: how the AI moves and determines reasoning and its behavior.
- Path-Finding: finding the shortest path to a certain destination.
- Animation sequences for different body parts such as shooting/reloading in FPS.
- Scripted Behavior: show their personality through dialogue, contributing to the overall storyline of the game.
- Collision: detect obstacles in game.
As an SJSU student, I have yet to learn about the algorithms used in video games to create AI. The most popular algorithms used are A(*), Finite State machines, and Artificial Neural Networks. Every game you've played has definitely used some sort of AI, and have implemented these algorithms.










