Hacker News new | ask | show | jobs
by 1123581321 1211 days ago
Sid had achieved competent but un-fun AI early on in the series and backed off. Players hate it because of how good it is at sacking poorly defended cities, especially early on when the AI knew too much about the global map.
3 comments

A good AI shouldn't need to know any more about the global map than a human player would in the same situation. If they made it see the whole map, it's basically cheating.
In general with strategy game AIs it’s not feasible to make it play at decent human level, so the way they make it challenging to play is by cheating in various ways. Resource boosts, global vision, etc.

In particular, humans are very good at reasoning based on limited information. We can form hypotheses about where resources or objectives might be, or if an enemy unit goes out if the visible map, estimating where it could be on a later turn, or what it’s presence indicates about its home civilisation’s disposition out of sigh. That sort of thing is extremely hard to program, so the only way to compensate for the AIs inability to intuit information is by actually giving it the information.

>That sort of thing is extremely hard to program

Which is why the parent of the entire chain mentioned the advances in AI.

Why would we expect the recent advances in AI to be applicable to this problem?
You could chat to the AI, and the AI responses can be parsed to trigger in-game actions (e.g. declare war or offer a trade).
Bing, you are playing Civilization as a Nuclear Gandhi.
While I can't prove it wouldn't work, it seems doubtful. How would the LLM be made aware of the game state?
I suppose what I mean is, in the context of a computer game where you’re playing a computer, I don’t think it makes sense to talk about cheating. The way the game works is the rules. There may be different rules for the human and AI players, but the expectation that they are the same is an assumption ported over from board games. It’s not really a thing in native computer games. For example nobody expects the computer opponents in a FPS to obey the same rules as the human player. So I don’t think cheating is really an applicable term.
My point is that it's kinda weird to claim that we had AI that was so good at opportunistically playing "like a human" by e.g. picking on poorly defended cities that human players hated it, but then admit that its proficiency is at least in part because it knows the whole map - that, by definition, is not "like a human".
The means is not human like, but the behaviour might well be. A human might conduct a search with scout units and intuit city locations from observed units and such to identify and target cities. Doing that in software might be infeasible, so you give the model full information and maybe program in a delay based on the distance to enemy cities before targeting them. The implementation is different but the behaviour ends up being hard for human players to distinguish.
Yes, recent advances in Poker and Diplomacy show that this is possible.
Yes, but the problem persists since a truly competent AI will have good guesses about where and when to strike into your hidden territory based on what’s revealed to it, using the same advances that give computational room to respect fog of war.
The main thing I'd want in a Civ AI is to be barely competant at combat. Right now, if you can get a couple archers up in time, you can beat an AI army that's 2-5x your size depending on the terrain. Yeah, it feels bad as a beginner when you haven't bothered to build any military and an AI comes and kills you, but a beginner should be playing a beginner mode.

I'd love God mode AI to put up any sort of half decent fight without needing to have so many more units that just go through an endless meat grinder because they can't coordinate or figure out how to back off and heal.

Realistically, if the Civ team were to want to do this, here's how I'd go about it:

1) Break the problem down into strategic goals and tactical actions, and then group the tactical actions into areas (e.g. diplomacy, resourcing, combat, research).

2) Process recorded online games of human players into streams of relevant events / choices.

3) Continually retrain your models on the output of 2.

You should thus have an AI that approximates the meta approaches of humans, which is really what we're talking about.

New players look exactly like bad AI: making poor choices, oblivious to things "the players community" already knows are always optimal, etc.

So really the problem is "How do we build a model that already knows what most of our players do, at this stage of the game's lifecycle?"

Which is essentially what one of the recent fighting games(?) did with their AI.

I’d suggest playing Old World if you want a challenging tactical opponent. It’s one unit per tile like Civ 5 onward.
> when the AI knew too much about the global map.

Is it that players hate good AI or that flagrant cheating breaks immersion? I think the latter would be an interesting AI target: can you make something which plays well but doesn’t do things which are obviously impossible for the player to do in-game - e.g. helping the AI with some extra resources isn’t glaring but having attacks perfectly target things the AI shouldn’t be able to see, or instantly repair damaged units, etc. is something you could never duplicate even if you were the best player in the world.