AIs were born from games you know. Cortana for instance was a non-playable character in an old shooter game. Her popularity in that game is why Microsoft chose her as their AI mascot when computer technology improved. Most AIs developed from roleplaying games though, whether single player or of the multiplayer variety. Some were designed to adapt to the many players they would interact with, while some programmers coded their AIs just for themselves. A very few became something more than intended.