Ask HN: Why haven't we seen AI as opponents in video games?
5 duxup 6 7/25/2025, 3:16:16 PM
Civilization used to be my favorite video game series. I played it since Civ I and as much as any software it came along for the ride with my interest with computers. But around Civ VI the competition provided by the computer opponent seemed to fall apart completely. Often the computer just rage quits and doesn't build a military, declares war and does nothing, and so on.
This makes me wonder why we haven't seen AI as a gaming opponent much. I suspect even a flawed AI would at least do something. Gaming AI opponents seem like a natural place for something like AI where they could provide a lot of unexpected fun and "interesting decisions".
Is there something about the current AI landscape that makes it incompatible, difficult, or unprofitable?
Contrary to what gamers usually think, making an impossibly difficult computer opponent is trivial. Give a Counter-Strike/Valorant/FPS bot a wallhack & aimbot and everyone will compete on kicking each other in the match rather than playing the game. Making a computer opponent that's fun to play against, on the other hand, is hard and not even a guaranteed hit for the game.
I don't think current "AI" could do well in standard video game context. It's way too computationally hungry for most of local machine and it's probably hard to "program" it the way game designer envision it to be.
In particular, VR worlds could really use an NPC you share the space with and have a conversation with like you do in real life or in VRChat. One reason Horizon Worlds is so daft is that if a business wanted to create an experience where you could interact meaningfully business it would have to staff the space with a real employee.
I'm not sure if I would trust an LLM to play a major character ("you are dan!"), but could it be like one of the cast members at Disney or Colonial Williamsberg, I think yes.
It was the first first-person shooter I played where the enemies actually were tactically challenging. Sit and camp a spot and they'd find a way to flank you.
So, I suspect you mean something particular when you say AI. What are you thinking of?
[1]: https://www.gamedeveloper.com/design/building-the-ai-of-f-e-...
Wat? Chess?
The problem is that a lot of the time, bruteforce search can beat the snot out of any human player, but the real game design objective isn't "beat the player", it's "give the player enough of a challenge to make beating the AI fun".
In Civ's case, it might be theoretically optimal play for the computer to capitalize on rushing players with warriors before they have a chance to establish defenses, but it is also a great recipe for players to angrily request refunds after the tenth consecutive round of being crushed by Gandhi in turn 5. A lot of game AI development time goes into tweaking action probabilities or giving the player advantages to counteract the AI advantage - the reluctance to build military units you saw could have been the result of such a tweak.
As for why LLMs typically aren't applied as game opponents:
* They are quite compute intense, which is tricky when players expect at most 16 ms latency per frame (for 60 FPS), and get ornery if they have to wait more than a few seconds, but also do not like having always-online requirements imposed by cloud compute (or subscription costs to fund running LLMs for every player)
* The bridge between tokens and actions also means it's hard to tweak probabilities directly - while A* can let you specify that a certain path should be taken approx. 20% of the time, implementing this in an agent-LLM approach means you have to actively select and weight token probabilities during the beam search, which is a bit of a hassle, to put it mildly
* The issues with long-term coherence in LLMs, famously demonstrated by Vending-Bench [4], makes reliability and debugging harder
[1] https://en.wikipedia.org/wiki/A*_search_algorithm
[2] https://www.gamedeveloper.com/design/building-the-ai-of-f-e-...
[3] https://www.gameaipro.com/
[4] https://arxiv.org/abs/2502.15840