How AI video games can help reveal the mysteries of the human mindAI-driven nonplayer characters can help understand human cooperation and relationships with artificial agents.